«   2020/02   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
Archives
Today
32
Total
1,243,407
안정적인 DNS서비스 DNSEver
관리 메뉴

Blue Breeze

Origin Policy Error on Sailsjs 본문

Language/Node.js

Origin Policy Error on Sailsjs

푸른바람 C/H 2019. 3. 20. 17:16

# 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,
  },
};


'Language > Node.js' 카테고리의 다른 글

NPM Permission Error  (0) 2019.11.13
jwtwebtoken  (0) 2019.04.12
Origin Policy Error on Sailsjs  (0) 2019.03.20
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
0 Comments
댓글쓰기 폼