Jump to content

UniURLFrame:some site refused to your access,How to resolve it?


55143681

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...