aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent8abdac5ade33c71125eb3f7409cb6dafe8aff278 (diff)
Enable CORS on oauth endpoints
Diffstat (limited to 'src')
-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);