Need some help on security config for file and http request #12880
-
Hello :) I'm currently making an app with Tauri, the objective is very simple: the user can make any HTTP request it wants on any target (like Postman or Insomnia). I'm trying to do two things, actually:
My code is set up for the history file, and for the request I use Axios and I recently try this package too (https://github.com/persiliao/axios-tauri-api-adapter). My code is available here (https://github.com/bouteillerAlan/postier) if you want to check, but the code is not my question here ^^ I have hard time to understand what I have to do for the security configuration. I understand that I have to update the "permissions": [
"core:default",
"opener:default",
{
"identifier": "fs:allow-write-file",
"allow": [{"path": "$APPLOCALDATA/*"}]
},
{
"identifier": "fs:allow-read-file",
"allow": [{"path": "$APPLOCALDATA/*"}]
},
{
"identifier": "http:default",
"allow": [{ "url": "https://google.fr" }]
}
], But in both of my case nothing work at all. The request (get on https://google.fr) is never made (
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
no idea if that's a bug in tauri or intentional, but if you remove this https://github.com/bouteillerAlan/postier/blob/main/postier-app/src-tauri/capabilities/default.json#L20-L21 it'll work |
Beta Was this translation helpful? Give feedback.
no idea if that's a bug in tauri or intentional, but if you remove this https://github.com/bouteillerAlan/postier/blob/main/postier-app/src-tauri/capabilities/default.json#L20-L21 it'll work