tensorflow.js 익히기 -cors error, cdn사용-

1. cors error 이미지 분류기 사용할려고 하는데 에 이미지 경로를 쓰면 cors error가 나더라 로컬에서 CORS policy 관련 에러가 발생하는 이유 (velog.io) 로컬에서 CORS policy 관련 에러가 발생하는 이유 🚀 발단 위와 같은 html 파일을 로컬환경에서 크롬 브라우져로 실행시켰더니 >Access to script at 'file:///C:/경로/js/module.js' from origin 'null' has been blocked by CORS policy: Cr velog.io http-server 설치해서 npx http-server 실행시켜서 http://127.0.0.1:8080 서버에서 파일 실행시키면 cors error없어 2. cdn 사용 html파일에..