allow all
This commit is contained in:
@@ -24,7 +24,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|||||||
public class SecurityConfig {
|
public class SecurityConfig {
|
||||||
|
|
||||||
private final JwtAuthenticationFilter jwtAuthenticationFilter;
|
private final JwtAuthenticationFilter jwtAuthenticationFilter;
|
||||||
@Value("${app.cors.allowed-origin:http://localhost:5173}")
|
@Value("${app.cors.allowed-origin:*}")
|
||||||
private String allowedOrigin;
|
private String allowedOrigin;
|
||||||
|
|
||||||
public SecurityConfig(JwtAuthenticationFilter jwtAuthenticationFilter) {
|
public SecurityConfig(JwtAuthenticationFilter jwtAuthenticationFilter) {
|
||||||
|
|||||||
@@ -19,4 +19,4 @@ spring:
|
|||||||
|
|
||||||
app:
|
app:
|
||||||
cors:
|
cors:
|
||||||
allowed-origin: ${CORS_ALLOWED_ORIGIN:http://localhost:5173}
|
allowed-origin: ${CORS_ALLOWED_ORIGIN:*}
|
||||||
|
|||||||
Reference in New Issue
Block a user