Skip to content

Commit

Permalink
better cors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CinquinAndy committed Mar 24, 2024
1 parent 5d8c6af commit 8da188e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ module.exports = ({env}) => {
name: "strapi::security",
config: {
cors: {
origin: ['*'], //allow all origins
headers: ['*'], //allow all headers
origin: ['app://obsidian.md'],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'HEAD'],
headers: ['Content-Type', 'Authorization'],
},
contentSecurityPolicy: {
useDefaults: true,
Expand Down

0 comments on commit 8da188e

Please sign in to comment.