A
A
Anton2016-05-29 13:02:29
Nginx
Anton, 2016-05-29 13:02:29

How to add a damn iframe to a site without errors?

There is a site site.ru.
There is another site where I take the video from - remotesite.ru .

So when I add a video to my site, I get an error:

Blocked a frame with origin " remotesite.ru " from accessing a frame with origin " site.ru ". Protocols, domains, and ports must match.


Registered Content Security Policy in NGINX. Prescribed Content Security Policy in HTML. I wrote Content Security Policy in a fucking RoR project in ApplicationController.

Nothing helps. I'm already boiling and about to burst.

Help me please.

PS Yes, yes. This is my third theme of the night, but it's also different. I will refine the information. Moderators please don't delete :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2016-05-29
@dimonchik2013

it's not so easy
, find an example that works, and sniff what's where,
well, you'll have to put something in the root of the domain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question