mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
feat: adding security headers to improve observatory score
This commit is contained in:
@@ -257,7 +257,7 @@ export default defineConfig({
|
||||
clientsClaim: true,
|
||||
inlineWorkboxRuntime: true,
|
||||
skipWaiting: true,
|
||||
globIgnores: ["**_redirects**"],
|
||||
globIgnores: ["**_redirects**", "**_headers**"],
|
||||
globPatterns: ["**/*.js", "**/*.css"],
|
||||
runtimeCaching: [{
|
||||
urlPattern: new RegExp('.*'),
|
||||
|
||||
5
public/_headers
Normal file
5
public/_headers
Normal file
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
X-Frame-Options: DENY
|
||||
X-XSS-Protection: 1; mode=block
|
||||
X-Content-Type-Options: nosniff
|
||||
Content-Security-Policy: default-src 'self';
|
||||
Reference in New Issue
Block a user