Skip to content

Commit

Permalink
try adding cors headers to fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
grantcodes committed Feb 28, 2024
1 parent f2b38b1 commit a5c5973
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ const config = {
},
]
},
async headers() {
return [
{
source: '/fonts/(.*)',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
],
},
]
},
}

export default config

0 comments on commit a5c5973

Please sign in to comment.