New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Access-Control-Allow-Origin" is not added to headers #103
Comments
This is not a bug, rather you accidentally made a mistake in your origin: function(origin, callback) {
callback(originsWhiteList[origin] ? null : 'Bad Request', origin);
}, |
the readme file state the second callback's parameter is a boolean |
Weird, then not sure. Can you issue a PR that fixes the issue you are having? |
I believe that only fault is at ReadMe.md file only, |
So after spending the past week getting to know this module better to help maintain it--it turns out that both are correct. The second argument you give to the callback can actually be any valid value to the |
It started with having problem for CORS between my front-end (angular2) and back-end (expressjs). Some StackOverflow recommend to use cors-package (for answers in 2016 against those from 2013-2014).
I've used following configuration and CORS still not adding "Access-Control-Allow-Origin":
this should be classified as bug, right ?
the exact error:
The text was updated successfully, but these errors were encountered: