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

Misleading message in jsonrpsee_server::transport::http::response::method_not_allowed #1451

Closed
dcfreire opened this issue Sep 11, 2024 · 1 comment

Comments

@dcfreire
Copy link
Contributor

Currently jsonrpsee returns "Used HTTP Method is not allowed. POST or OPTIONS is required\n" as the body of the response to any request that is not POST. Either it should actually accept OPTIONS requests, or return "Used HTTP Method is not allowed. POST is required\n".

I understand that a CORS layer can be added to handle OPTIONS requests, but it is not required to reach this message.

@niklasad1
Copy link
Member

Closed by #1452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants