Skip to content
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

Preflight success statusCode should be configurable #73

Closed
Sharaal opened this issue Apr 19, 2016 · 3 comments
Closed

Preflight success statusCode should be configurable #73

Sharaal opened this issue Apr 19, 2016 · 3 comments

Comments

@Sharaal
Copy link

Sharaal commented Apr 19, 2016

Hi,

we have currently problems in the communication with some Smart TVs. They crashs if getting a 204 status code for the preflight request and want to have a 200 status code.
Default value if not configured should be 204 for compatibility.

@Sharaal
Copy link
Author

Sharaal commented Apr 19, 2016

Would be also solved by always response the status code 200 like its mentioned in the already existing pull request: #66

troygoode added a commit that referenced this issue Aug 23, 2016
@troygoode
Copy link
Member

fixed and published as 2.8.0, but requires you to set the option optionsSuccessCode: 200

@hongbo-miao
Copy link

Just searched and found here, the current field name is optionsSuccessStatus.
Posted here in case it help future people.

@expressjs expressjs locked and limited conversation to collaborators May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants