mirror of
https://github.com/scratchfoundation/restify-cors-middleware.git
synced 2024-12-21 05:12:22 -05:00
32 lines
823 B
JavaScript
32 lines
823 B
JavaScript
module.exports = {
|
|
ALLOW_HEADERS: [
|
|
'accept',
|
|
'accept-version',
|
|
'content-type',
|
|
'request-id',
|
|
'origin',
|
|
'x-api-version',
|
|
'x-request-id',
|
|
'x-requested-with'
|
|
],
|
|
EXPOSE_HEADERS: [
|
|
'api-version',
|
|
'content-length',
|
|
'content-md5',
|
|
'content-type',
|
|
'date',
|
|
'request-id',
|
|
'response-time'
|
|
],
|
|
AC_REQ_METHOD: 'access-control-request-method',
|
|
AC_REQ_HEADERS: 'access-control-request-headers',
|
|
AC_ALLOW_CREDS: 'access-control-allow-credentials',
|
|
AC_ALLOW_ORIGIN: 'access-control-allow-origin',
|
|
AC_ALLOW_HEADERS: 'access-control-allow-headers',
|
|
AC_ALLOW_METHODS: 'access-control-allow-methods',
|
|
AC_EXPOSE_HEADERS: 'access-control-expose-headers',
|
|
AC_MAX_AGE: 'access-control-max-age',
|
|
STR_VARY: 'vary',
|
|
STR_ORIGIN: 'origin',
|
|
HTTP_NO_CONTENT: 204
|
|
}
|