Spring Boot Activiti 由于“X-Frame-Options“指令设为“DENY“ 跨域问题

	@Override
	public void configure(HttpSecurity http) throws Exception {
		//放开所有资源请求URL
		http.authorizeRequests().antMatchers("/*").permitAll();
		
		//取消csrf防护
		http.csrf().disable();
		
		// X-Frame-Options 响应头跨域,主要是这句
		http.headers().frameOptions().disable();
	}

说明:

      http.headers().frameOptions().disable(); // 任何跨域
      http.headers().frameOptions().sameOrigin(); // 同源跨域

参考:https://blog.csdn.net/txp1993/article/details/103678098

Guess you like

Origin blog.csdn.net/JavaAlpha/article/details/108509758