Recent Posts
Recent Comments
Archives
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- domain
- deep dive
- useRouter
- js
- error
- 오블완
- 프로그래머스
- 모던 자바스크립트
- 코딩테스트
- TailwindCSS
- 내일배움캠프
- supabase
- 최적화
- 프로젝트 셋팅
- 코테
- 스파르타코딩클럽
- Next
- 티스토리챌린지
- 자주 까먹는
- 모던자바스크립트
- CORS
- 코드카타
- array정적메서드
- React
- 초기셋팅
- 셋팅
- git
- nextjs
- vercel
- auth
- Today
- Total
목록해결 (1)
도록

오류 원인html 파일에서 module 타입의 js import를 한 뒤, 파일 경로로 접근하니 CORS error가 난다.Access to script at 'file:///C:/Users/블라블라블라/파일명.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted. 오류 메세지를 읽고 다시 보니, 파일 경로에는 말그대로 origin이 빠져있다. (origin = 프로토콜 + 호스트 + 포트)- https://ree..
Today I Learned/in dev
2024. 5. 7. 17:57