Skip to content

Commit

Permalink
chore : location 헤더 노출 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
le2sky committed Aug 27, 2023
1 parent a05098b commit 16199dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mealkitary.common.config

import org.springframework.context.annotation.Configuration
import org.springframework.http.HttpHeaders
import org.springframework.web.servlet.config.annotation.CorsRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

Expand All @@ -10,5 +11,6 @@ class WebConfig : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
.allowedOrigins("*")
.exposedHeaders(HttpHeaders.LOCATION)
}
}

0 comments on commit 16199dc

Please sign in to comment.