天天看點

解決控制台報錯Refused to display 'http://localhost/xxxx' in a frame because it............

解決辦法如下:

找到SpringSecurityConfigurer這個類,修改如下:

複制代碼

@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
 	 httpSecurity.headers().frameOptions().disable();
}
           

來源:https://www.cnblogs.com/ycyzharry/p/9888297.html

繼續閱讀