|
@@ -15,10 +15,10 @@ import org.springframework.web.filter.CorsFilter;
|
|
* @since 1.0
|
|
* @since 1.0
|
|
*/
|
|
*/
|
|
@Configuration
|
|
@Configuration
|
|
-@ConditionalOnProperty(prefix = "hsweb.web.cors", name = "enabled", havingValue = "true")
|
|
|
|
|
|
+@ConditionalOnProperty(prefix = "hsweb.cors", name = "enable", havingValue = "true")
|
|
public class CorsAutoConfiguration {
|
|
public class CorsAutoConfiguration {
|
|
|
|
|
|
- @ConfigurationProperties(prefix = "hsweb.web.cors")
|
|
|
|
|
|
+ @ConfigurationProperties(prefix = "hsweb.cors")
|
|
@Bean
|
|
@Bean
|
|
public CorsConfiguration corsConfiguration() {
|
|
public CorsConfiguration corsConfiguration() {
|
|
return new CorsConfiguration();
|
|
return new CorsConfiguration();
|