Today I Learned
CORS 이슈(API → 클라이언트) 본문
res.setHeader('Access-Control-Allow-Origin', '*');
위 코드를 추가하여 준다. '*'은 모든 아이피에 대한 허용을 나타낸다.
'ERROR' 카테고리의 다른 글
gcc 컴파일 시 undefined reference to ~ (0) | 2022.08.05 |
---|---|
uncaughtException: Router.use() requires a middleware function but got a Object (0) | 2022.08.03 |
retrieve connection from pool timeout after (0) | 2022.04.15 |
(node:94066) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined (0) | 2022.03.30 |
sudo: apt-get: 명령이 없습니다 (0) | 2022.03.29 |
Comments