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