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