修改服务bug漏洞及未修改的服务
This commit is contained in:
parent
73de1acaef
commit
f2f327c3b4
|
|
@ -27,10 +27,10 @@
|
|||
<groupId>com.bonus</groupId>
|
||||
<artifactId>api-system</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-security</artifactId>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
<!-- <artifactId>spring-boot-starter-security</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- Common Redis-->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
package com.bonus.common.security.interceptor;
|
||||
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
||||
|
||||
|
||||
/**
|
||||
* @author 黑子
|
||||
*/
|
||||
@Configuration
|
||||
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
http.headers()
|
||||
.contentSecurityPolicy("default-src 'self'; script-src 'self' https://trusted.cdn.com;");
|
||||
}
|
||||
}
|
||||
//package com.bonus.common.security.interceptor;
|
||||
//
|
||||
//
|
||||
//import org.springframework.context.annotation.Configuration;
|
||||
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * @author 黑子
|
||||
// */
|
||||
//@Configuration
|
||||
//public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
// @Override
|
||||
// protected void configure(HttpSecurity http) throws Exception {
|
||||
// http.headers()
|
||||
// .contentSecurityPolicy("default-src 'self'; script-src 'self' https://trusted.cdn.com;");
|
||||
// }
|
||||
//}
|
||||
|
|
|
|||
Loading…
Reference in New Issue