-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
Express 4.x uses res.set
instead of res.setHeader
#21
Comments
also
while examples in README use it |
thanks for the heads up @shane-tomlinson and @elf-pavlik |
… not a function"}` issue I don't fully understand but is kinda-sorta mentioned here: expressjs/cors#21
Express 4 inherits in the HTTP ServerResponse prototype:
Which means that all the methods available on HTTP ServerResponse class are available on the Express response object. This includes the https://nodejs.org/api/http.html#http_response_removeheader_name This is documented in the opening stanza of the Express "Response" object:
And it links to the docs for the "HTTP ServerResponse" class from there. So, both
|
See http://expressjs.com/api.html#res.set
The text was updated successfully, but these errors were encountered: