我有两个网站:
drupal网站
magento网站
在我的drupal网站上,我想显示我的magento网站的iFrame,但这使我犯了一个错误:
Refused to display 'https://magento_site.com?_redirect_url=https://drupal_site.com' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors https://drupal_
“”“
import requests
from bs4 import BeautifulSoup
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
r = requests.get(url_,headers=headers)
‘我正试图刮这个网站"“,直到昨天一切都很好,但是突然间我得到了403个错误。我使