JKKook / KickMaster-AI

📝 chatGpt, Node.js , JavaScript, HTML(Ejs)
1 stars 0 forks source link

Cors 이슈 #1

Open JKKook opened 1 year ago

JKKook commented 1 year ago

Acess to fetch at 'https://zwfykk23amarnziyeu5rojgb4y0qazhi.lambda-url.ap-northeast-2.on.aws/api/chat' from origin 'https://football-agent-ai.pages.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

AWS Lamda에서 배포 시 발생하는 에러, Cors 관련 모듈 설치와 option을 넣어줬지만 계속 에러가 발생 노드 버전 낮춰서 재시도

JKKook commented 1 year ago

Node 다운그레이드 이후 해결