Localhost no joy: Examples of trusting self-signed cert or verify=false or allow_redirect_on_scheme_change #5371
Closed
thelazydogsback
started this conversation in
General
Replies: 1 comment 5 replies
-
Hi @thelazydogsback If I'm understanding correctly, you were able to generate the API client, but you are not able to test it when targeting an API locally running? Is the problem only happening for redirects (301/302) no being followed? Or are you not able to make any request at all and simply tried to find a setting in the code base? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Things are working fine when accessing my deployed endpoints, but trying to debug to localhost...
If I use
https://localhost/8001
I get:ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)
and for
http://localhost/8000
I get:Redirects with changing schemes not allowed by default.
Sorry if I'm missing something form the docs, but are there examples of either setting up the middleware to either recognize a self-signed cert, or not verify it, or to change
allow_redirect_on_scheme_change = True
in the middleware?Currently my code looks like:
Beta Was this translation helpful? Give feedback.
All reactions