root layout

패스트캠퍼스

  1. 강의 질문
  2. AI/업무생산성

part 13 커뮤니티 게시판 만들기에서 firebase storage가 연결이 안됩니다.

2025.07.30 09:04 작성

part 13 커뮤니티 게시판 만들기에서 firebase storage가 연결이 안됩니다.

이미지가 안들어 가고 나오는 오류가

Failed to load resource: net::ERR_FAILEDUnderstand this error

RichTextEditor.tsx:196 이미지 업로드 시작

StorageService.ts:168 게시글 이미지 업로드 함수 호출됨: 5qn6Py0HfEe1wf7huVppkn8dVg23

StorageService.ts:178 파일 확장자: png

StorageService.ts:179 파일 크기: 489 바이트

StorageService.ts:180 파일 타입: image/png

StorageService.ts:186 저장 경로: posts/temp/5qn6Py0HfEe1wf7huVppkn8dVg23/image_1753832617447.png

StorageService.ts:189 Storage 참조 생성됨: posts/temp/5qn6Py0HfEe1wf7huVppkn8dVg23/image_1753832617447.png

StorageService.ts:192 업로드 시작...

write:1 Access to XMLHttpRequest at 'https://firebasestorage.googleapis.com/v0/b/momo-18ec5.appspot.com/o?name=posts%2Ftemp%2F5qn6Py0HfEe1wf7huVppkn8dVg23%2Fimage_1753832617447.png' from origin 'http://localhost:3006' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

이런 오류가 떠서 커서에 문의하니 cors파일이랑 rule을 고치라고해서 했는데도 잘 안되고

chat gpt에 문의해보니 gs://프로젝트명.firebasestorage.app이런 구성은 안되는거라고 appspot.com 이렇게 생성되어야된다고하면서 gcloud를 깔아서 해보라고하는데 어떻게 해야될지 모르겠습니다.


답변 

연관 질문

커뮤니티 질문보기