Skip to content
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

[FIX] restrict allowed origin patterns for cors #62

Open
2 tasks
linirini opened this issue Mar 11, 2025 ยท 0 comments
Open
2 tasks

[FIX] restrict allowed origin patterns for cors #62

linirini opened this issue Mar 11, 2025 ยท 0 comments
Assignees
Labels

Comments

@linirini
Copy link
Member

๐Ÿ” ๋ฌธ์ œ ์ƒ์„ธ

  • ํ˜„์žฌ ๋ชจ๋“  origin์— ๋Œ€ํ•œ ์š”์ฒญ์ด ํ—ˆ์šฉ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
  • Location ํ—ค๋”์— ๋Œ€ํ•œ ์„ค์ •์ด ๋˜์–ด ์žˆ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. CORS ํ™˜๊ฒฝ์—์„œ ๊ธฐ๋ณธ์ ์œผ๋กœ ์ผ๋ถ€ ํ—ค๋”๋งŒ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ํด๋ผ์ด์–ธํŠธ ์ธก์—์„œ ํ•ด๋‹น ํ—ค๋”๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค๋ฉด ์—ด์–ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ“ ์ˆ˜์ •์‚ฌํ•ญ ์ƒ์„ธ

  • ํ—ˆ์šฉํ•˜๋Š” ์ถœ์ฒ˜ ๋ชฉ๋ก์„ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค.
  • Location ํ—ค๋”์— ๋Œ€ํ•œ ์„ค์ •์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. (ํด๋ผ์ด์–ธํŠธ ์ธก๊ณผ ๋…ผ์˜)

๐Ÿ—๏ธ ์ž‘์—… ์ƒ์„ธ

  • ํ—ˆ์šฉํ•  ์ถœ์ฒ˜ ๋ชฉ๋ก์„ ๋ถ„๋ฆฌํ•˜๊ณ , ์„ค์ • ํŒŒ์ผ๋กœ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
  • WebMvcConfig ํŒŒ์ผ์˜ corsmapping ์„ค์ •์„ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ‘€ ์ฐธ๊ณ ์‚ฌํ•ญ

No response

@yunyoung1819 yunyoung1819 self-assigned this Mar 19, 2025
@yunyoung1819 yunyoung1819 added this to the 1์ฐจ MVP milestone Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants