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