«   2019/07   »
  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 30 31      
Archives
Today
1
Total
1,218,020
안정적인 DNS서비스 DNSEver
관리 메뉴

Blue Breeze

Origin Policy Error on Sailsjs 본문

Language/Node.js

Origin Policy Error on Sailsjs

푸른바람 C/H 2019.03.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' 카테고리의 다른 글

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
node.js json-server  (0) 2018.06.13
0 Comments
댓글쓰기 폼