今天在利用Ckeditor做文件上传的时候出现了下面的错误:
Refused to display in a frame because it set 'X-Frame-Options' to 'DENY'
解决方法
修改application.conf里面的headers下面的配置。
# The X-Frame-Options header. If null, the header is not set.
frameOptions = null
然后就可以了,原因是playframework拦截了哈。
参考文献
[1].页面加入到一个iframe框架中报Refused to display in a frame because it set 'X-Frame-Options' to 'DENY'错误
[2].Security filter shouldn't set empty headers. https://github.com/playframework/playframework/issues/3826
[3]. 基于spring-boot的web应用,ckeditor上传文件图片文件。 https://www.bbsmax.com/A/nAJvYNjnzr/