55143681 Posted August 11, 2021 Share Posted August 11, 2021 Dear: I use the follow code to access a site, void __fastcall TMainForm::UniFormBeforeShow(TObject *Sender) { UniURLFrame1->URL="www.sohu.com"; } but ,some site give me an error,such as "www.sohu.com",the error reason is : Refused to display 'https://www.sohu.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'. some site works well,such as "https://www.sina.com.cn" why? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 11, 2021 Share Posted August 11, 2021 1 hour ago, 55143681 said: Dear: I use the follow code to access a site, void __fastcall TMainForm::UniFormBeforeShow(TObject *Sender) { UniURLFrame1->URL="www.sohu.com"; } but ,some site give me an error,such as "www.sohu.com",the error reason is : Refused to display 'https://www.sohu.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'. some site works well,such as "https://www.sina.com.cn" why? I hope this will help to You: http://forums.unigui.com/index.php?/search/&q=X-Frame-Options&quick=1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.