mirror of
https://github.com/scratchfoundation/restify-cors-middleware.git
synced 2024-12-19 04:12:25 -05:00
commit
a48453ad77
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
var corsMiddleware = require('restify-cors-middleware');
|
||||
|
||||
var cors = corsMiddleware({
|
||||
preflightMaxAge: 5 //Optional
|
||||
preflightMaxAge: 5, //Optional
|
||||
origins: ['http://api.myapp.com', 'http://web.myapp.com'],
|
||||
allowHeaders: ['API-Token'],
|
||||
exposeHeaders: ['API-Token-Expiry']
|
||||
|
|
Loading…
Reference in a new issue