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 Antworten
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
EXPERTE
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen