-
-
Notifications
You must be signed in to change notification settings - Fork 223
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 docs wrong - Service needed #1071
Comments
Or is this actually a bug, not a docs problem? |
You can give document repository a PR. |
I guess the change was introduced in this commit: Was it on purpose to break the router way of adding hoops, and you forgot to update the docs? |
While we're at it - I'm not quite grokking the concept of a |
Problem
Took me hours of debugging to figure out the example on salvo_cors docs is wrong:
the server responds with a
405 Method Not Allowed
to a preflight request:Solution
The only way it works is if the cors handler is added to a service (like I found in examples/cors on this repo):
The text was updated successfully, but these errors were encountered: