You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: [#1553] Adds setting disableSameOriginPolicy, to make it possible to bypass the same-origin policy (CORS) (#1554)
* feat: [1553] Add disableCrossOriginPolicy setting to disable cors in the browser
* chore: [#1553] Adds unit tests and changes name on setting for disabling same-origin policy
* chore: [#1553] Adds unit tests and changes name on setting for disabling same-origin policy
---------
Co-authored-by: David Ortner <[email protected]>
`Mixed Content: The page at '${this.#window.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,
134
+
`Mixed Content: The page at '${
135
+
this.#window.location.href
136
+
}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${
137
+
this.request.url
138
+
}'. This request has been blocked; the content must be served over HTTPS.`,
@@ -118,7 +121,11 @@ export default class SyncFetch {
118
121
this.#window.location.protocol==='https:'
119
122
){
120
123
thrownewthis.#window.DOMException(
121
-
`Mixed Content: The page at '${this.#window.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,
124
+
`Mixed Content: The page at '${
125
+
this.#window.location.href
126
+
}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${
127
+
this.request.url
128
+
}'. This request has been blocked; the content must be served over HTTPS.`,
122
129
DOMExceptionNameEnum.securityError
123
130
);
124
131
}
@@ -177,7 +184,7 @@ export default class SyncFetch {
0 commit comments