Answer the question
In order to leave comments, you need to log in
Is it possible to translate data from a third party site into an iframe?
Good afternoon!
I don’t know how correct this question is, but is it possible to translate the information of a third-party site loaded into an iframe or, for example, replace some words with Russian ones.
<?php if (WLS_Main::$settings['wls_author_linking'] == '1') {
Answer the question
In order to leave comments, you need to log in
I'm assuming you want to do it through the frontend with JavaScript otherwise this question wouldn't arise (curl and all), you can do it with jQuery like this:
Next, we do everything we need with html, and what we get is inserted instead of an iframe, but the catch is that it just won’t work from another domain unless the “protection” is turned off there (until they include Access-Control in the headers -Allow-Origin: *), and until this is done it will be:
Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question