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

feat : CORS 관련 이슈 해결 #21

Merged
merged 1 commit into from
Sep 28, 2024
Merged

feat : CORS 관련 이슈 해결 #21

merged 1 commit into from
Sep 28, 2024

Conversation

thsghdud13
Copy link
Member

  • webMVCConfig 추가
@Configuration
@RequiredArgsConstructor
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry
                .addMapping("/**")
                .allowedHeaders("*")
                .allowedOrigins("http://localhost:5173", "https://inhafestime.com")
                .allowedMethods("*");
    }
}

@thsghdud13 thsghdud13 added bug Something isn't working enhancement New feature or request labels Sep 28, 2024
@thsghdud13 thsghdud13 self-assigned this Sep 28, 2024
@thsghdud13 thsghdud13 linked an issue Sep 28, 2024 that may be closed by this pull request
@thsghdud13 thsghdud13 merged commit 0df97f2 into main Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat : CORS 관련 이슈 해결
1 participant