Skip to content

Commit

Permalink
remove temporary code
Browse files Browse the repository at this point in the history
- revert playground config setup to basis
- remove uneccessary tryUseNuxt import in 99-cspNonce
  • Loading branch information
vejja committed Oct 17, 2023
1 parent 20b0966 commit f5dce18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 1 addition & 10 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ export default defineNuxtConfig({
// Global configuration
security: {
headers: {
xXSSProtection: '0',
contentSecurityPolicy: {
'style-src': ["'self'", "'nonce-{{nonce}}'"],
'script-src': [
"'self'", // backwards compatibility for older browsers that don't support strict-dynamic
"'nonce-{{nonce}}'",
"'strict-dynamic'"
],
'script-src-attr': ["'self'", "'nonce-{{nonce}}'", "'strict-dynamic'"]
}
xXSSProtection: '0'
},
rateLimiter: {
tokensPerInterval: 10
Expand Down
1 change: 0 additions & 1 deletion src/runtime/nitro/plugins/99-cspNonce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type {
ModuleOptions
} from '../../../types'
import { useRuntimeConfig } from '#imports'
import { tryUseNuxt } from '@nuxt/kit'

interface NuxtRenderHTMLContext {
island?: boolean
Expand Down

0 comments on commit f5dce18

Please sign in to comment.