We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://<api_host>/graphql
http
When using https://<api_host>/graphql endpoint instead of https://<api_host>/graphql/ Ariadne sends a 307 redirect to the trailing-slash one.
https://<api_host>/graphql/
307
Initial scheme (http or https) should be respected in the redirect
https
You get always redirected to http which in turn results in browser Mixed Content error (e.g. in Chrome 105.0.5195.125+)
Mixed Content
The text was updated successfully, but these errors were encountered:
Ariadne is not implementing any router that would check the URL and make such redirect. Are you mounting it under FastAPI or Starlette?
Sorry, something went wrong.
Mounting under FastAPI, sorry for the delay
This is behaviour of Starlette's router that FastAPI also uses. Your usecase is even explicitly mentioned here:
encode/starlette#869
liqwid
No branches or pull requests
Context
When using
https://<api_host>/graphql
endpoint instead ofhttps://<api_host>/graphql/
Ariadne sends a307
redirect to the trailing-slash one.Expected behavior
Initial scheme (
http
orhttps
) should be respected in the redirectActual behavior
You get always redirected to
http
which in turn results in browserMixed Content
error (e.g. in Chrome 105.0.5195.125+)The text was updated successfully, but these errors were encountered: