-
Notifications
You must be signed in to change notification settings - Fork 0
chore: CORS 설정 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: CORS 설정 #15
Conversation
report: Run #58
🎉 All tests passed! |
pilyang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good~~
저는 내일 데이터추가랑 작업이랑 해보겠습니다ㅠㅜ
| corsConfig := cors.Config{ | ||
| AllowOrigins: []string{"*"}, | ||
| AllowMethods: []string{"GET", "POST", "OPTIONS", "DELETE", "PUT", "PATCH"}, | ||
| AllowHeaders: []string{"Origin", "Content-Type", "Authorization"}, | ||
| ExposeHeaders: []string{"Content-Length"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋아용~
혹시 저희 서버랑 localhost만 허용하는 방법도 있나용?
저희 프론트 주소랑 로컬호스트에서만 허용해도 될것같아서용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋아용~ 수정해둘게요!
report: Run #59
🎉 All tests passed! |
gin-contrib/cors통해 CORS 설정 추가해뒀어용