- Sails.js global CORS config not working, per-route is
- Access-Control-Allow-Headers On Cross-Origin Resource Sharing (CORS) MDN
- Access-Control-Request-Headers On Cross-Origin Resource Sharing (CORS) MDN
- sails.config.security
# config/security.js module.exports.security = { cors: { allRoutes: true, allowOrigins: '*', allowCredentials: false, allowRequestMethods: 'GET, POST, PUT, DELETE, OPTIONS, HEAD', allowRequestHeaders: 'content-type, authorization', allowResponseHeaders: '*', allowAnyOriginWithCredentialsUnsafe: true, }, };
반응형
'lang > node' 카테고리의 다른 글
NPM Permission Error (0) | 2019.11.13 |
---|---|
jwtwebtoken (0) | 2019.04.12 |
not support route and folder fot sails.js (0) | 2019.03.04 |
Sails Restful-api Tutorials (0) | 2019.02.22 |
Full Stack Framework Sails.js For Node.js (0) | 2019.02.14 |