Good day!
The situation is ...
It is necessary to place a page inside the iframe. But in order to avoid an error when requesting that page, it is necessary to send a POST request with special data to it. Question: how to display a page in an iframe, requesting it by a special url and sending parameters using the POST method?
If it matters, the webkit engine only, for the rest it doesn't matter whether it will work.

    1 answer 1

    1. Make an intermediate page, the path to it and insert it into the src frame
    2. On the page itself, we do a post request with a script, for example

     $.post('test.html', function(data) { $('body').html(data); }); 

    Naturally for this by connecting to the intermediate page jquery

    UPD: Better yet, put a form with hidden fields for the parameters on the page and send it with a script. Then the content will not be loaded by the Ajax and there will be no problems with the work of the scripts on the final page, plus you do not need to connect jquery

     <form action='test.html'> <input type='hidden' name='param1' value='123'/> </form> <script> document.forms[0].submit() </script> 
    • Yes! Interesting idea. I'll try. - Anton Mukhin
    • Tochnyak! Beautiful idea. Thank! - Anton Mukhin