Closed denisyilmaz closed 4 years ago
@denisyilmaz I somehow completely missed this notification/issue, my apologies.
You have to enable CORS on the web server, if you are using Apache you can modify this in the .htaccess
. Here is a helpful link: https://enable-cors.org/server_apache.html. There is also documentation if you are using Nginx here: https://enable-cors.org/server_nginx.html
That documentation tells you to enable CORS for every domain, but a better idea is to limit it to only known domains like so:
Access-Control-Allow-Origin: https://example.com
Hopefully that resolves your issue!
I'm going to close this out, but if you need anything else please don't hesitate!
Hi, I have an angular application that uses
/hasura/auth
for authentication. locally it works amazingly well.I pushed my frontend and the craftcms now to two different servers.
frontend >> example.com craftcms >> domain2.com
when trying to access
/hasura/auth
via example.com I now get following error:both servers have SSL certificates and all other requests to craftcms are working like charm. Is there somebody who might know the issue for this?