blob: 2fdb54804f8c89a6c39d20def8bb9eb3c0021775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package org.openecomp.portalapp.widget.filters;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
public class CorsConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers(HttpMethod.OPTIONS, "/microservices/widgetCatalog/").permitAll();
http.csrf().disable();
}
}
|