-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
--cors usage is incorrect in the documentation #856
Labels
Comments
2 tasks
This issue has been inactive for 180 days |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--cors | Enable CORS via the Access-Control-Allow-Origin header
The above documentation seems to be incorrect and it is confusing. As we can see through the code, that --cors will enable the
Access-Control-Allow-Origin
header and also the value set is assigned to theAccess-Control-Allow-Headers
. Possible values: should be like here--cors='X-Custom-Header'
Here is the line that supports above:
https://github.com/http-party/http-server/blob/master/lib/http-server.js#L101-L107
The text was updated successfully, but these errors were encountered: