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

Document how to work around insecure https requests #397

Closed
pihentagy opened this issue Jun 9, 2021 · 4 comments
Closed

Document how to work around insecure https requests #397

pihentagy opened this issue Jun 9, 2021 · 4 comments

Comments

@pihentagy
Copy link

Please add a possibility (like -k in curl) for insecure https requests.

@frigus02
Copy link
Owner

frigus02 commented Jun 9, 2021

Hi there. So, the bad news is: I don't think it is possible for RESTer to ignore certificate errors. This is because RESTer uses fetch and the it's the browser that decides to block the request. It doesn't seem possible for RESTer to detect that fetch failed because of an invalid certificate. The only information it receives is "NetworkError when attempting to fetch resource.".

The good news however is, that you can accept the risk for the site once in a new tab and then RESTer should be able to make the request successfully.

I just tried the following example:

  1. Attempt to load GET https://self-signed.badssl.com/ in RESTer. It failed.
  2. Open https://self-signed.badssl.com/ in a new tab and accept the certificate warning.
  3. Attempt to load the same request in RESTer again. This time it worked.

Does that work for you?

@pihentagy
Copy link
Author

Thanks for the prompt reply. Yes, your workaround solved the issue. Maybe worth to note somewhere since developers may often use hosts with bad certificates when debugging.

((Ah, I knew I saw your name somewhere: Car Report app!))

@frigus02 frigus02 changed the title allow insecure https requests Document how to work around insecure https requests Jun 9, 2021
@frigus02
Copy link
Owner

frigus02 commented Jun 9, 2021

Yep, that's a good idea. I guess there could just be a text in the error modal that says something like:

This could be caused by a HTTPS certificate issue. If so, try to open the URL in a new tab and accept the certificate warning. Then try the request in RESTer again.

@frigus02
Copy link
Owner

I added network troubleshooting advice in 4.7.0. Should be available in the next hours.

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

No branches or pull requests

2 participants