1
Fork 0
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:
diced 2022-11-24 14:34:24 -08:00
parent 0dbbf4840c
commit d76e6444e0
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -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();