title: >-
“Failed to load response data“ django@xframe_options_exempt 网站不许 Firefox
显示被嵌入的网页
url: >-
https://yayi.site/archives/failedtoloadresponsedatadjangoxframeoptionsexempt网站不许firefox显示被嵌入的网页
cover: >-
https://cdn.jsdelivr.net/gh/tangxingithub/picbed/img/20210311124333-The-executioner-and-her-way-of-life.jpg
abbrlink: eacc72e0
date: 2021-04-06 17:48:00
updated: 2021-05-14 22:00:57
categories:

tags:

# python django ajax

chrome 显示 failed to xxx 。以为ajax 数据量大。

  1. 设置ajax 的timeout 没有用

  2. 换firefox 网站不许 Firefox 显示被嵌入的网页 。哦。(firefox nb)

  3. django 的官方 xframe_options_exempt 在view的视图方法上注解

  4. 在这里插入图片描述

  5. ok.安全问题。