问题
in a frame because it set 'X-Frame-Options' to 'sameorigin'.
解决办法:
SecurityConfig中
.headers((headersCustomizer) -> {
headersCustomizer.cacheControl(cache -> cache.disable()).frameOptions(options -> options.sameOrigin());
})
替换为
.headers(headers -> headers
.cacheControl(cache -> cache.disable())
.frameOptions(frameOptions -> frameOptions.disable())
)