P
P
Pogran2016-12-08 21:57:49
Facebook
Pogran, 2016-12-08 21:57:49

How to solve the frame issue?

I am getting an error

Refused to display 'https://www.facebook.com/MManorHD/photos/a.346975761985228.102857.346951158654355/1540344995981626/?type=3&theater' in a frame because it set 'X-Frame-Options' to 'DENY'.

I'm trying to insert the frame code through js. As I understand facebook forbids me to embed it. But if you just insert it through html, then everything displays normally. Maybe someone knows what's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-12-08
@Pogran

What does it mean "Maybe someone knows what's wrong?"...
It also says - because it set 'X-Frame-Options' to 'DENY
' content in the frame.

P
Philipp, 2016-12-08
@zoonman

Don't use an image in a frame. Otherwise it won't work.
You can solve it by proxying all requests through your server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question