html5 embed tag 被reject的问题

s
somehow
楼主 (未名空间)

想把target.com里面一段网页放我网页上,有没有办法解决?
我知道不会容易,但还是抱有幻想


embed src="http://www.target.com/c/adult-bikes-sports-outdoors/-/N-5ul7zZvphy4?Nao=0"
width="400"
height="400" /

得到: www.target.com refused to connect.

curl -I https://www.target.com/c/adult-bikes-sports-outdoors/-/N-5ul7zZvphy4?Nao=0
HTTP/2 405
server: Varnish
retry-after: 0
accept-ranges: bytes
date: Sun, 14 Mar 2021 01:56:55 GMT
clientgeo: US
set-cookie: TealeafAkaSid=iZrVKn7CgKA6TJ4qYmTOUMr-IZAZvowx; Expires=Tue, 13 Apr 2021 01:56:55 GMT; Path=/; Domain=target.com;
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self' https://*.target.com;
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
referrer-policy: no-referrer-when-downgrade
strict-transport-security: max-age=31536000; includeSubDomains
content-length: 0

s
somehow

程序不全,否则没法post上来,就是embed那一行,谢谢!
s
sui

可以考虑两个选择:
option 1: 通知Target告诉他们,开放 X-frame-options。
option 2: 做一个自己可以控制的proxy 服务,中转
【 在 somehow (愿我的生命璀璨) 的大作中提到: 】
: 想把target.com里面一段网页放我网页上,有没有办法解决?
: 我知道不会容易,但还是抱有幻想
:
: embed src="http://www.target.com/c/adult-bikes-sports-outdoors/-/N-5ul7zZvphy4?Nao=0"
: width="400"
: height="400" /
: 得到: www.target.com refused to connect.
: curl -I https://www.target.com/c/adult-bikes-sports-outdoors/-/N-
5ul7zZvphy4
: ?Nao=0
: HTTP/2 405
: ...................