close

[Solved] Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’ in javascript. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’ Error Occurs?

Today I get the following error Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’ in javascript.

How To Solve Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’ Error ?

  1. How To Solve Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' Error ?

    To Solve Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' Error I was facing this issue in Grafana and all I had to do was go to the config file and change allow_embedding to true and restart the server 🙂

  2. Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

    To Solve Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' Error I was facing this issue in Grafana and all I had to do was go to the config file and change allow_embedding to true and restart the server 🙂

Solution 1

I faced the same error when displaying YouTube links. For example: https://www.youtube.com/watch?v=8WkuChVeL0s

I replaced watch?v= with embed/ so the valid link will be: https://www.youtube.com/embed/8WkuChVeL0s

It works well.

Try to apply the same rule on your case.

Solution 2

I was facing this issue in Grafana and all I had to do was go to the config file and change allow_embedding to true and restart the server 🙂

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment