asked
[Renewed] Node.js Textbook - From Basics to Project Practice
Understanding CORS
Resolved
Written on
·
158
4
app.use(cors({ origin: ['http://localhost:4000', 'http://localhost:4001'], credentials: true, }));
http:// 를 붙여줘야 저렇게 사용할 수 있는 것 같습니다.
Answer 1
1
감사합니다~