Closed wahello closed 6 years ago
@keyeMyria nginx does that automatically when the same header is defined twice, in your case probably the two conditions are both true. Make the condition stricter so they don't overlap, but this is not a flask-cors
issue
I use Nginx for reverse web proxy, and the configuration for api as following:
and browser console error is following: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'http://logierp.zz56.s1.natapp.cc, http://logierp.zz56.s1.natapp.cc', but only one is allowed. Origin 'http://logierp.zz56.s1.natapp.cc' is therefore not allowed access.
It seems that Access-Control-Allow-Origin add the same origin twice.
Any Idea to fix it? Help!!!!!