No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '127.0.0.1' is therefore not allowed access. The response had HTTP status code 500.
server {
listen 80;
server_name example.com www.example.com;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:5000;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}