Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@ public class WebConfig implements WebMvcConfigurer {
* 대신 allowOriginPatterns를 사용해야 한다.
*/

private static final String DEVELOP_FRONT_ADDRESS = "http://localhost:3000";

// Main에 적용
// @Override
// public void addCorsMappings(CorsRegistry registry) {
// registry.addMapping("/**")
// .allowedOrigins(DEVELOP_FRONT_ADDRESS)
// .allowedMethods("GET", "POST", "PUT", "DELETE")
// .exposedHeaders("location")
// .allowedHeaders("*")
// .allowCredentials(true);
// }

// Develop에 적용
@Override
public void addCorsMappings(CorsRegistry registry) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.dfbf.soundlink.global.config;

import jakarta.servlet.ServletRequest;
import lombok.RequiredArgsConstructor;
import org.dfbf.soundlink.global.auth.JwtAuthenticationFilter;
import org.dfbf.soundlink.global.auth.JwtProvider;
Expand All @@ -10,7 +9,6 @@
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.example.soundlinkchat_java.global.config;
package org.dfbf.soundlink.global.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
Expand All @@ -12,19 +12,6 @@ public class WebConfig implements WebMvcConfigurer {
* 대신 allowOriginPatterns를 사용해야 한다.
*/

private static final String DEVELOP_FRONT_ADDRESS = "http://localhost:3000";

// Main에 적용
// @Override
// public void addCorsMappings(CorsRegistry registry) {
// registry.addMapping("/**")
// .allowedOrigins(DEVELOP_FRONT_ADDRESS)
// .allowedMethods("GET", "POST", "PUT", "DELETE")
// .exposedHeaders("location")
// .allowedHeaders("*")
// .allowCredentials(true);
// }

// Develop에 적용
@Override
public void addCorsMappings(CorsRegistry registry) {
Expand Down