app.use(helmet())app.use(function (req, res, next) {res.header("Access-Control-Allow-Origin", "*");res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,PATCH,OPTIONS');res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization');res.header('Access-Control-Allow-Headers', 'Content-Type', 'X-Auth-Token');res.header('Access-Control-Allow-Credentials', true);next(); })
Submitted June 16, 2020 at 04:54AM by KommSur
No comments:
Post a Comment