remove localhost-specific protocol matching

This commit is contained in:
Matt Walsh
2024-05-08 16:30:11 -05:00
parent 20b4d22115
commit 7be20490e8
2 changed files with 2 additions and 2 deletions

View File

@@ -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) => {