开发者

iframe domain issues leading to 500 internal server error

开发者 https://www.devze.com 2023-01-06 19:46 出处:网络
I have a strange issue with a website that cannot reference any resources from another site. The source site (A) is t开发者_如何学Pythonrying to iframe a page from the other site (B).For some reason,

I have a strange issue with a website that cannot reference any resources from another site.

The source site (A) is t开发者_如何学Pythonrying to iframe a page from the other site (B). For some reason, site (B) is returning a 500 internal server error.

I then tried just to reference a simple image from site (B) with a tag and that returned a 404.

It's obviously something server related but I'm not sure what it could be. The iframe to server (B) works fine if it's used on any other site. So there is some cross-domain like issue going on when server (A) tries to contact server (B).

To make things more complicated, using "curl" from server (A) to access server (B) works fine.

Anyone encountered something like this before?

Thanks,

Andre


The 500 error could either be a circular dependency or a blacklisted server. The 404 implies the latter.

Do you control both servers? Or is B owned by someone else who might have blocked the IP of server A?

If the latter, play nicely and send the owner of server B an email. If the former, check that you've not accidentally configured apache to block any IPs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号