aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-09 05:05:11 +0300
committerGravatar Vitaly Takmazov2023-01-09 05:05:11 +0300
commit8908d48713b627eaa5af9727841ca676f9ddbd98 (patch)
treeb80de6b04d148f6b02eb40abfaca4ad50cfd3c26 /src/main/java
parent8abdac5ade33c71125eb3f7409cb6dafe8aff278 (diff)
Enable CORS on oauth endpoints
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/config/SecurityConfig.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/juick/config/SecurityConfig.java b/src/main/java/com/juick/config/SecurityConfig.java
index 0b9ec387..bb2a47cb 100644
--- a/src/main/java/com/juick/config/SecurityConfig.java
+++ b/src/main/java/com/juick/config/SecurityConfig.java
@@ -163,6 +163,7 @@ public class SecurityConfig {
.exceptionHandling((exceptions) -> exceptions
.authenticationEntryPoint(loginUrlAuthenticationEntryPoint)
)
+ .cors(cors -> cors.configurationSource(corsConfigurationSource()))
// Accept access tokens for User Info and/or Client Registration
.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt);