Skip to content

Commit

Permalink
chore: added cors to api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Aug 31, 2024
1 parent 08b6b3a commit 32cfcf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export default defineNuxtConfig({
viewTransition: true,
},

routeRules: {
'/api/**': { cors: true },
},

vite: {
plugins: [
wasm(),
Expand Down

0 comments on commit 32cfcf1

Please sign in to comment.