Replies: 1 comment 1 reply
-
有实际case吗 我本地跑跑 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我想要在 src/inject/event.js发起http请求,使用的是js的fetch函数,但是出现都是 这种违反头策略,如下
because it violates the following Content Security Policy directive。
但是一已经配置了,tauri.config.json里面的http模块
"allowlist": { "all": true, "fs": { "all": true, "scope": ["$DOWNLOAD/*"] }, "http":{ "all": true, "request": true, "scope":[ "http://**", "https://**" ] } }
请问下作者大大,这个怎么解决呢?
Beta Was this translation helpful? Give feedback.
All reactions