diff options
author | Vitaly Takmazov | 2023-01-09 05:05:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-09 05:05:11 +0300 |
commit | 8908d48713b627eaa5af9727841ca676f9ddbd98 (patch) | |
tree | b80de6b04d148f6b02eb40abfaca4ad50cfd3c26 /src/main | |
parent | 8abdac5ade33c71125eb3f7409cb6dafe8aff278 (diff) |
Enable CORS on oauth endpoints
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/juick/config/SecurityConfig.java | 1 |
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); |