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

2 Answers
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
EXPERT
answered a year ago
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions