I got a cross domain error on my local computer (although the code works perfectly on our web server). This is a real pain in the development of docking, so I want to know is this - can I adjust the settings in Chrome to get this error locally?
Asked
Active
Viewed 22 times
0
-
Did you try: chrome://flags/#block-insecure-private-network-requests and chrome://flags/#allow-insecure-localhost – Wayne Apr 07 '22 at 01:52
-
It sounds like chrome wants the content from an HTTPS server ... but I don't know what you are attempting to access the ... allow insecure localhost ... should allow a HTTP request [which on server must be a HTTPS request] to operate on localhost. Might be another flag involved. so let me know if it worked. – Wayne Apr 07 '22 at 01:56
-
1If you are reading the information from a non-localhost system. You will likely need to make the request to your localhost and use a PHP wrapper to get the information from the remote host. But if it must be a HTTPS you will still need to use flags to get chrome into development modes to allow that from an HTTP://localhost – Wayne Apr 07 '22 at 01:59
-
I have left the javascript tag on the question, though I think that the true answer is adding a CORS policy on the web server – ControlAltDel Apr 07 '22 at 02:29