Closed satterly closed 8 years ago
Headers should be case insensitive, this is a bad bug. Good catch. I will fix this tonight.
Thanks for the quick fix. I can confirm this works for me.
@satterly glad to hear it!
Thanks a lot for taking the time to make such a detailed report, it made it much easier to fix :-)
Let me know if you have any other feedback around this package :-)
You're welcome. I know what it's like trying to bugfix based on other people's Github issues.
As for feedback, some more debug logging would have helped me with this. But now that it's fixed I'm not sure it's worth spending much more time on.
With version 3.x the list of headers returned by
Access-Control-Allow-Headers
is now a case-sensitive match against the list of headers defined in theCORS_ALLOW_HEADERS
setting.For example, with version 2.1.3 if the setting for "allow_headers" was ...
... then the following works ...
However, with version 3.x it does not return the
Access-Control-Allow-Headers
header because there was no case-sensitive match.This breaks CORS on most browsers including Chrome and Firefox. However, not on IE apparently.