I am using OE Browser. I try to run Custom script from my server using “Load script from URL”. There is an error in the console of the browser:
“Access to XMLHttpRequest at <my server/script.js> from origin ‘https://apps.sentinel-hub.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”
Script from my server is normally accessible via browser.
Quick google search finds one possible cause for that: security does not allow to run script from another domain than the one OE browser (or apps.sentinel-hub.com) is on.
So it seems it is not possible to use custom script from URL or it is limited to specific domains or certificates or something similar?
Can you be more specific please? Is this a new error for you, and is this error only occurring for a single custom script, or does this now happen for all your custom scripts?
Thanks
EDIT:
To add to this, in order for scripts being loaded from an external source to work, make sure:
the script is on a server that works with the https (url starts with https://<my-server>)