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개 답변
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
전문가
답변함 일 년 전
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠