using runtime html4,Error using HTML4 runtime when server set the X-Frame-Options

在使用IE9和HTML4运行时遇到问题,服务器返回HTTP200状态码,但Plupload报告404错误。尝试了DENY和SAMEORIGIN两种X-Frame-Options设置,DENY导致错误,SAMEORIGIN则正常。问题可能与服务器配置或Plupload的兼容性有关。
摘要由CSDN通过智能技术生成

When using IE9 and HTML4 runtime (I can't use the flash runtime) I ran into some problems.

The server does correctly answer HTTP 200 OK but for plupload there is an error 404.

Here is the server response:

HTTP/1.1 200 OK

Server: nginx/1.11.1

Date: Mon, 18 Jul 2016 16:17:25 GMT

Content-Type: text/plain;charset=UTF-8

Content-Length: 92

Connection: keep-alive

Access-Control-Allow-Origin: *

Access-Control-Allow-Credentials: true

Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS

Access-Control-Max-Age: 3600

Access-Control-Allow-Headers: Authorization, Content-Type, Accept

X-Frame-Options: DENY

X-Content-Type-Options: nosniff

X-XSS-Protection: 1; mode=block

X-Application-Context: application

{"ref":"20160718_181544403_avatar_200.jpg","fileName":"avatar_200.jpg","size":13615}

Here is the trace of the error :

{

"code":-200,

"message":"HTTP Error.",

"file":{

"id":"o_1anvcfbs91qf6j33jid8bm16o7a",

"name":"avatar_200.jpg",

"type":"image/jpeg",

"loaded":0,

"percent":0,

"status":2,

"lastModifiedDate":"18/7/2016 18:12:27"

},

"response":null,

"status":404,

"responseHeaders":""

}

I tried two different values for the X-Frame-Options (DENY and SAMEORIGIN). The DENY value cause the error when the SAMEORIGIN does not.

I could not find any clue on why does this happen.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值