Skip to content

Commit 3d1a190

Browse files
committed
Resolve against the origin rather than the document URL
1 parent 76bd16c commit 3d1a190

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/static/js/monitoring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function formatSourceStatus(status, error) {
390390
}
391391

392392
function fetchMetrics() {
393-
return fetch('/api/metrics', {
393+
return fetch(window.location.origin + '/api/metrics', {
394394
credentials: 'same-origin',
395395
cache: 'no-store',
396396
headers: { 'Accept': 'application/json' },

0 commit comments

Comments
 (0)