Hi to everybody,
I’m getting an issue with CORS. I’m developing a webapp application (angular) in which I offer vegetation idexes maps. During the token retrivation with the folowing link ‘https://services.sentinel-hub.com/auth/realms/main/protocol/openid-connect/token’ I obtain status code 200, but with CORS exception.
An OAuth client that is going to be used in a single page web app must have this option enabled; Client will be used by a single-page application (SPA) option needs to be checked and then allowed domains need to be set.
I updated the settings in “Update existing OAuth Client” window, I checked “Client will be used by a single-page application” and I added the used domain: “https://oliver.sigmaconsulting.it/”.
Again the service gives me CORS error, I can solve it installing a plugin on the browser (Google Chrome) that allow me to “Enable CORS”.
How can I make it work the webapp without that plugin?
Try using a wildcard (*) in the domain specification: https://oliver.sigmaconsulting.it*
If that doesn’t work, check allow all domains if that fixes the issue.