skip to Main Content

How to solve Allow access origion problem – CPanel

i have tried to upload mern project on cpanel but always get cors problem I have use this function in express js but same problem occurred 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 ,…

VIEW QUESTION

how to set "connect-redis" in typescript

Now im following the Fullstack React GraphQL TypeScript Tutorial I get trouble in connectRedis with express-session;;; import connectRedis from "connect-redis"; import session from "express-session"; ... const RedisStore = connectRedis(session); [ERROR] error TS2345: Argument of type 'typeof session' is not assignable…

VIEW QUESTION
Back To Top
Search