enable CORS headers #1301
Unanswered
ashkaptsov
asked this question in
Q&A
Replies: 3 comments 6 replies
-
You better add this kind of headers in your application code rather than nginx. |
Beta Was this translation helpful? Give feedback.
3 replies
-
I just tried adding a random header and it's working just fine. So CapRover is doing its job and it passes the content to nginx You can try confirming this by running this on your local machine
You can view the edited nginx confirm on the demo instance:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
How can i solve this problem? I inserted all cors policy opened in my node application: node server
reactjs call:
curl -I https://doc-server-prod.bpo.digital-test.uk command:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
can not find a right way to add to nginx config:
add_header 'Access-Control-Allow-Origin' '*';
get always an error:
The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:8080, *', but only one is allowed.
any ideas?
Beta Was this translation helpful? Give feedback.
All reactions