remove localhost-specific protocol matching
This commit is contained in:
parent
20b4d22115
commit
7be20490e8
2 changed files with 2 additions and 2 deletions
2
dist/resources/ws.min.js
vendored
2
dist/resources/ws.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -21,7 +21,7 @@ const fetchAsync = async (_url, responseType, _params = {}) => {
|
|||
if (params.cors === true) corsUrl = rewriteUrl(_url);
|
||||
const url = new URL(corsUrl, `${window.location.origin}/`);
|
||||
// match the security protocol when not on localhost
|
||||
url.protocol = window.location.hostname === 'localhost' ? url.protocol : window.location.protocol;
|
||||
// url.protocol = window.location.hostname === 'localhost' ? url.protocol : window.location.protocol;
|
||||
// add parameters if necessary
|
||||
if (params.data) {
|
||||
Object.keys(params.data).forEach((key) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue