Refused to apply style from 'http://localhost:3000/...' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
내가 만난 에러들 2022. 1. 24. 22:44

상황 cdn을 사용하지 않고 bootstrap.css 파일을 로컬에 포함해서 내가 구현하고자 하는 웹페이지의 디테일을 조작하기 위해 bootstrap.css를 작업 중인 디렉토리에 포함하고 경로를 지정했는데도 계속 css 파일을 찾지 못하고 와 같이 css가 적용되지 않은 html의 틀만 뱉어냈다. 까닭 결국 경로를 제대로 설정하지 않아서인데, 경로를 제대로 로컬에 포함하고 맞는 상대 경로를 지정해줬어도 // user에게 public folder를 사용가능하게 제공 /public 이동시 public폴더를 볼 수있음 //express.static : express의 정적 파일 제공 app.use("/public", express.static(__dirname + "/public")); server.js에서..