You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to be an issue with the express server in parse-server that nginx is proxying to. I have been unable to figure out how to modify this. Help is appreciated.
The text was updated successfully, but these errors were encountered:
I have followed this guide
for every class loading I get this error:
XMLHttpRequest cannot load. Origin is not allowed by Access-Control-Allow-Origin.
I am trying to create a standalone parse server, keeping the website that accesses it separate, they have separate domains, both are https.
I have tried modifying the nginx "/etc/nginx/sites-enabled/default" file. under location I have tried
location /parse/ { proxy_set_header 'Access-Control-Allow-Origin' '*'; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; proxy_pass http://localhost:1337/; proxy_ssl_session_reuse off; proxy_set_header Host $http_host; proxy_redirect off; }
Have also tried
location /parse/ { add_header 'Access-Control-Allow-Origin' '*'; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; proxy_pass http://localhost:1337/; proxy_ssl_session_reuse off; proxy_set_header Host $http_host; proxy_redirect off; }
I have also tried adding this entire script
It seems to be an issue with the express server in parse-server that nginx is proxying to. I have been unable to figure out how to modify this. Help is appreciated.
The text was updated successfully, but these errors were encountered: