Localhost no joy: Examples of trusting self-signed cert or verify=false or allow_redirect_on_scheme_change #5371
Closed
Michael Robin (thelazydogsback)
started this conversation in
General
Replies: 1 comment 5 replies
|
Hi Michael Robin (@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? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Things are working fine when accessing my deployed endpoints, but trying to debug to localhost...
If I use
https://localhost/8001I get:ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)
and for
http://localhost/8000I 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 = Truein the middleware?Currently my code looks like:
All reactions