Closed aydinnyunus closed 1 year ago
Your webservers (admin.example.com, public.example.com) have to send the cors headers.
Have a look here: https://www.google.com/amp/s/auth0.com/blog/amp/cors-tutorial-a-guide-to-cross-origin-resource-sharing/
@dfoxg thank you i solved it by using wildcard *. but i dont want to use wildcard domain how can i add more domains on cors-proxy.js file ? when i do it i get an error has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'http://IP, http://IP2', but only one is allowed.
or how can i add authorization header check on apis
The cors-proxy.js is only for local development, don't use it in production! As I mentioned before, you have to set the cors headers on your webservers.
I change the Admin URL on
public/config.json
to my domainadmin.example.com:4434
and public topublic.example.com:4433
and also edit thecors-proxy.js
but still got a cors error.