Skip to content

Status Code: 405 Method Not Allowed #3

Closed
@songololo

Description

@songololo

I am trying to use sanic-graphql but am encountering a Status Code:405 Method Not Allowed error.

The <url>/graphql endpoint (graphiql) works fine. However, when trying to use the endpoint from an apollo-client website then I encounter the above-mentioned Status Code 405 error when the browser attempts an OPTION preflight request.

This is presumably somehow related to the sanic documentation for Class-Based Views which states that if the the class based view does not contain the request method (in this case the OPTION preflight request), then a 405: Method not allowed error is returned.

Is there some way to resolve this?

Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions