CORS

Srikanth N asked on November 1, 2017 14:42

Hi,

We have a scenario in our Kentico 10 website, for that we need to modify Iframe parent elements from Iframe. Domain names of Iframe and parent are different. Could you please suggest a way to do that?

We added “<meta http-equiv="Access-Control-Allow-Origin" content="*">” but still the error is occurring. Please suggest a way to make this done.

Correct Answer

Brenden Kehren answered on November 1, 2017 15:00

I'd suggest checking out the documentation here. It talks about setting the x-frame-options as needed.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Peter Mogilnitski answered on November 1, 2017 15:12

Access-Control-Allow-Origin is only for XHR requests. IFRAME has nothing to do with it. For IFRAME you you have to follow Same Origin Policy. You may try to add document.domain = 'example.com' to your pages, to see if that works

0 votesVote for this answer Mark as a Correct answer

Srikanth N answered on November 2, 2017 08:31

Hi,

I set document.domain to the same domain name in Parent as well as in Iframe. It solved the issue. I didn't apply any meta tags.

0 votesVote for this answer Mark as a Correct answer

Joseph I. answered on May 4, 2018 05:42

Internal links it he beat way to improve your website traffic. The most of people running more than one websites and they need suggests like you. The professionals can help you in this while providing the best solution of your problems. I need to know is grademiners.com legit available on your websites.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.