
강의에서는 자바스트립트 코드를 html 파일 안에서 작성했는데
이렇게 말고 외부 .js 파일에서 코드 작성 후 html 파일과 연결시키고 싶습니다
강의대로 type="module" 이라서 연결에 문제가 있습니다
Access to script at 'file:///C:/Users/songs/Documents/sparta/spartaflix/main.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.
브라우저에서 html 파일 열면 이렇게 오류가 뜨는데 뜨지 않게 연결하는 방법 알려주시면 갑사하겠습니다
