S
S
Schoolboy.2015-10-06 11:05:59
JavaScript
Schoolboy., 2015-10-06 11:05:59

How to solve problem with access to iframe?

I need to get the content of an iframe from another domain.
In a php-file on another domain, I registered A, where the iframe is located in js, I registered An error appears in the browser:header('Access-Control-Allow-Origin: *');
document.domain = 'ds.wild.org.ru';


Uncaught SecurityError: Failed to set the 'domain' property on 'Document': 'ds.wild.org.ru' is not a suffix of 'wild.org.ru'.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question