403 error when trying to use converFileSrc even after using the recommended csp value. #14060
-
I'm trying to use convertFileSrc to convert a device file path to a URL that the webview can load, but I keep getting a 403 error. Tauri Version: V2 |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Aug 25, 2025
Replies: 1 comment 1 reply
-
403 isn't a CSP error, it's about the scope. Your assetProtocol.scope config only allows the downloads, desktop, and app-specific data directories, without their contents. For example for your second screenshot to work you need to include |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
EArnold1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
403 isn't a CSP error, it's about the scope. Your assetProtocol.scope config only allows the downloads, desktop, and app-specific data directories, without their contents. For example for your second screenshot to work you need to include
"$APPDATA/**/*"
as well (**
means any folder level,*
means any file in those folders)