Skip to content

Commit

Permalink
try routeRule again
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Nov 20, 2024
1 parent 353a285 commit 08b2cad
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions examples/nuxt-blog-starter/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,24 @@ export default defineNuxtConfig({
$env: {
edit: {
ssr: false,
generate: {
fallback: "index.html", // Uses '404.html' instead of the default '200.html'
},
routeRules: {
"/**": {
cors: true,
redirect: {
to: "/index",
statusCode: 200
},
security: {
corsHandler: {
// options
origin: "https://hydra.pretagov.com"
},
// corsHandler: {
// // options
// origin: "https://hydra.pretagov.com"
// },
headers: {
contentSecurityPolicy: {
'img-src': ["'self'", 'data:', 'https://hydra.pretagov.com', 'https://hydra-api.pretagov.com'],
'img-src': ['self', 'data:', 'https://hydra.pretagov.com', 'https://hydra-api.pretagov.com'],
'connect-src': ["'self'", 'data:', 'https://hydra.pretagov.com', 'https://hydra-api.pretagov.com'],
'frame-ancestors': ['*']
},
Expand Down

0 comments on commit 08b2cad

Please sign in to comment.