update CORS on static assets

This commit is contained in:
keyan 2022-07-10 17:46:22 -05:00
parent 7aa6a02a08
commit 1df733f02b
1 changed files with 2 additions and 2 deletions

View File

@ -4,11 +4,11 @@ const isProd = process.env.NODE_ENV === 'production'
const corsHeaders = [
{
key: 'Access-Control-Allow-Origin',
value: isProd ? 'https://stacker.news' : 'http://localhost:3000'
value: '*'
},
{
key: 'Access-Control-Allow-Methods',
value: 'GET, PUT, POST, DELETE, HEAD, OPTIONS'
value: 'GET, HEAD, OPTIONS'
}
]