How to Allow a Site Hosted with Amazon to Be Embedded in an iFrame?

0

Hello,

I'm trying to embed our website in an iFrame on another website but instead get the error message "xxxx.com refused the connection.". I have talked to the support for the other website (its a booking system provider) and they told me that I need to activate iFrame on AWS. I have tried to google how to "activate iFrame" on AWS but I can't find anywhere how I do this? I'm not that experienced with web hosting and especially not AWS and our web developer guy recently stopped answering us and we have not yet found another reliable developer. :)

I would really appreciate you help.

Best regards Mathias

Mathias
已提问 1 年前1031 查看次数
2 回答
1

Hi,

The issue is due to CORS (Cross-Origin Resource Sharing). It is a security feature that's implemented by web browsers to prevent unauthorized access to resources on a web page.

Assuming your site is hosted in s3, you can enable cors and bucket policies reading this article: https://repost.aws/knowledge-center/s3-configure-cors

profile picture
专家
已回答 1 年前
0

Thanks a lot for your answer alatech. I just found out it is hosted in EC2 and not S3. I searched for forum threads regarding this question and I do belive I need some professional help to configure CORS. :) I think I will contact a developer to help me with this if there is not a detailed manual on how to configure CORS to allow my site to me embedded in iFrame. :)

Mathias
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容