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

도메인 cors 추가한다. #153

Merged
merged 1 commit into from
Jan 31, 2024
Merged

도메인 cors 추가한다. #153

merged 1 commit into from
Jan 31, 2024

Conversation

60jong
Copy link
Collaborator

@60jong 60jong commented Jan 31, 2024

What is this PR? 🔍

  • 도메인 cors 추가한다.

Changes 📝

  • .allowedOrigins("http://localhost:5173", "https://offonoff.me")

allowedOrigins내부를 확인해보니

CorsConfiguration.java

public void setAllowedOrigins(@Nullable List<String> origins) {
		if (origins == null) {
			this.allowedOrigins = null;
		}
		else {
			this.allowedOrigins = new ArrayList<>(origins.size());
			for (String origin : origins) {
				addAllowedOrigin(origin);
			}
		}
	}

origins를 새로 매핑하는 방식이라 누적이 안되더라구요.

@60jong
Copy link
Collaborator Author

60jong commented Jan 31, 2024

@melonturtle

바로 머지할게요!

@60jong 60jong merged commit 37f4367 into main Jan 31, 2024
1 check passed
@60jong 60jong deleted the cors branch January 31, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant