update CORS on static assets
This commit is contained in:
parent
7aa6a02a08
commit
1df733f02b
|
@ -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'
|
||||
}
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue