1

I have a personal website and linked my github account and linkedin on it. The links are working fine locally. After I uploaded to my github(since I hosted it on my github), the links doesnt work and the errors are:

Refused to display 'https://github.com' in a frame because it set 'X-Frame-Options' to 'deny'.
Refused to display 'https://www.linkedin.com' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Big_t boy
  • 299
  • 1
  • 5
  • 18

1 Answers1

0

You have various solutions in "Overcoming “Display forbidden by X-Frame-Options”".

Adding a target='_top' or target='_parent' attribute to your link (<a href="...">mylink</a>) should be enough to ensure they never try to open in the current iframe your page might be in.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250