Closed MaxTran96 closed 5 years ago
I have the header request in my code as well a config.properties file that contains those lines of code in the documentation. I still have the error
my config.properties file
Hey @MaxTran96 , have you tried to use *
for the cors_allowed_origin
value?
@MaxTran96
You should not added header "Access-Control-Allow-Origin: *" to your request, browser should append "Origin: http://localhost:3001" to the header. can you capture the request header sent by browser to check if the request was sent properly?
Remember, CORS is doing string match, suggest use "*" for testing.
In conversation over slack channel we were able to clarify with @MaxTran96 that he was using axios to send requests. Once he switched to fetch API this issue was resolved for him. I am going to close this issue, @MaxTran96 please feel free to add more details if necessary.
I'm not sure how to enable CORS on this. Thanks!