-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[feat] ignore ssl certificate errors #4039
Comments
idk about webkit*, but WebView2 literally just added an experimental api for this in a recent pre-release SDK so we would have to wait for that to stabilize first :/ * afaik webkitgtk has an api for that too, but i didn't find anything for macOS. |
Oh wow, i did not expect missing support in the underlying frameworks. Guess i have to use electron for now.. Thanks! |
I would consider using a rust http client, like |
I currently use vuejs and make requests via browser fetch. So just to make sure, you are basically thinking about:
Or did i misunderstand something? |
You got that right yeah! You can write some nicer JS abstraction on top of |
That is one of the disable-security requests we get oftenly but aren't planning on implementing anytime soon. Maybe we reconsider when we have more control over the webview. |
Yea i get that, no worries :) |
Can you please share the example code? |
I want same feature, but for now i have to use electron. Is there any progress? |
Maybe the http client used in tauri is attohttpc and reqwest. https://github.com/tauri-apps/tauri/blob/dev/core/tauri/src/api/http.rs#L136 And |
have you tried this |
Windows 10 + tauri 1.3.0
Finally you will find that you can use ClientBuilder and HttpRequestBuilder to access https apis under a self-signed certificate. |
It seems the tauri/core/tauri/src/api/http.rs Line 103 in cc3d8e7
tauri/core/tauri/src/api/http.rs Line 136 in 7fd4ca0
And for dev/2.x, the code may migrated to new repo which use So maybe we should search similar solution like And I also found |
Under the hood, chromium allows flag to disable verification of certificates and also to allow fetching http resoureces. We are in the main and vital need to connect to a local odata provider using http and we are stalled |
@realtebo Just to be sure, are you really talking about If it's http, you're using tauri v1, and you're dealing with mixed-content errors (windows only) then try this setting https://v1.tauri.app/v1/api/config/#securityconfig.dangeroususehttpscheme - if not then we'll need more info. |
前端访问https自签名证书会被拦截 tauri-apps/tauri#4039
Describe the problem
My app lets users connect to self-hosted services that often use self-signed or otherwise untrusted ssl certificates. I cannot access these services with tauri because of certificate errors.
Describe the solution you'd like
Ideal solution would be a prompt that lets users chose to trust the certificate. Another way would be how electron handles it, you can hook to a
certificate-error
event and ignore the errors, something like this:source
Alternatives considered
Even a command line flag like chromiums
--ignore-certificate-errors
would be helpful.Additional context
No response
The text was updated successfully, but these errors were encountered: