We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5efc24 commit bcd4316Copy full SHA for bcd4316
.changes/fix-csp-fallback-route.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Properly apply the CSP when loading a route that fallbacks to index.html.
core/tauri/src/manager.rs
@@ -733,7 +733,6 @@ impl<R: Runtime> WindowManager<R> {
733
// skip leading `/`
734
path.chars().skip(1).collect::<String>()
735
};
736
- let is_html = path.ends_with(".html");
737
738
let mut asset_path = AssetKey::from(path.as_str());
739
@@ -757,6 +756,7 @@ impl<R: Runtime> WindowManager<R> {
757
756
.map(Cow::into_owned);
758
759
let mut csp_header = None;
+ let is_html = asset_path.as_ref().ends_with(".html");
760
761
match asset_response {
762
Ok(asset) => {
0 commit comments