Skip to content

Commit

Permalink
remove looping redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Nov 20, 2024
1 parent c4c9b68 commit a93ee61
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions examples/nuxt-blog-starter/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export default defineNuxtConfig({
ssr: false,
routeRules: {
"/**": {
redirect: {
to: '/index',
statusCode: 200
},
cors: true,
headers: {
"origin": "https://hydra.pretagov.com",
Expand All @@ -27,7 +23,22 @@ export default defineNuxtConfig({
}
}
},
$development: {
routeRules: {
"/**": {
cors: true,
headers: {
"origin": "https://hydra.pretagov.com",
"content-security-policy": "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': '*';",
"cross-prigin-resource-policy": "cross-origin"
}
}
}
},
routeRules: {
"/**": {
cors: true
}
// "/_ipx/_/https%3A//*": {
// redirect: {
// to: "/_ipx/_/https%3A/*",
Expand Down

0 comments on commit a93ee61

Please sign in to comment.