mirror of
https://github.com/diced/zipline.git
synced 2025-04-04 23:21:17 -05:00
fix: dumb cors headers
This commit is contained in:
parent
0dbbf4840c
commit
d76e6444e0
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ export const withZipline =
|
|||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
res.setHeader('Access-Content-Allow-Methods', api_config.methods.join(','));
|
||||
res.setHeader('Access-Control-Max-Age', '86400');
|
||||
res.setHeader('Access-Control-Allow-Headers', '*');
|
||||
|
||||
if (req.method === 'OPTIONS') return res.status(204).end();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue