File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
common/src/main/kotlin/com/cosmotech/api/config Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,8 @@ subprojects {
123123 // included dynamically if the 'platform' build property is 'azure'
124124 implementation(" com.azure:azure-storage-blob-batch:12.9.1" )
125125 implementation(" org.springframework.boot:spring-boot-starter-security" )
126- implementation(" org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.4.5" )
126+ implementation(
127+ " org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.4.5" )
127128 implementation(" org.springframework.security:spring-security-jwt:1.1.1.RELEASE" )
128129 implementation(" com.azure.spring:azure-spring-boot-starter-cosmos" )
129130 implementation(" com.azure.spring:azure-spring-boot-starter-storage" )
Original file line number Diff line number Diff line change @@ -274,7 +274,8 @@ class CsmSecurityConfiguration(
274274 private val logger = LoggerFactory .getLogger(CsmSecurityConfiguration ::class .java)
275275
276276 override fun configure (http : HttpSecurity ) {
277- http
277+ http.cors()
278+ .and ()
278279 .authorizeRequests { requests ->
279280 requests.antMatchers(HttpMethod .OPTIONS , " /**" ).permitAll()
280281
You can’t perform that action at this time.
0 commit comments