What does status=canceled for a resource mean in Chrome Developer Tools?

前端 未结 30 1675
温柔的废话
温柔的废话 2020-11-22 11:13

What would cause a page to be canceled? I have a screenshot of the Chrome Developer Tools.

\"Canceled

30条回答
  •  粉色の甜心
    2020-11-22 11:37

    You might want to check the "X-Frame-Options" header tag. If its set to SAMEORIGIN or DENY then the iFrame insertion will be canceled by Chrome (and other browsers) per the spec.

    Also, note that some browsers support the ALLOW-FROM setting but Chrome does not.

    To resolve this, you will need to remove the "X-Frame-Options" header tag. This could leave you open to clickjacking attacks so you will need to decide what the risks are and how to mitigate them.

提交回复
热议问题