security ckeditor spring boot图片上传异常

tianxia007 发布于 2017/07/26 17:52
阅读 377
收藏 0

【华为云1024程序员节·向云而生】预约直播 抽14件华为电子产品礼包!>>>

用了security,后台访问图片上传路径,后台提示:

|/error|ckCsrfToken=IU5C3vzjwU13A8pr76Q7avV6dqovHSmen6gDb5yc|upload=|CKEditor=content|CKEditorFuncNum=0|langCode=zh-cn|excutetime=16ms

前端提示:

edit:1 Refused to display 'http://localhost:8080/upload/image?CKEditor=content&CKEditorFuncNum=0&langCode=zh-cn' in a frame because it set 'X-Frame-Options' to 'deny'.

 

<html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Wed Jul 26 19:49:55 CST 2017</div><div>There was an unexpected error (type=Forbidden, status=403).</div><div>Invalid CSRF Token &#39;null&#39; was found on the request parameter &#39;_csrf&#39; or header &#39;X-CSRF-TOKEN&#39;.</div></body></html>

谢谢大神不吝赐教!

加载中
返回顶部
顶部