Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting the HTTP request type of an <iframe>

Tags:

html

iframe

Is it possible to make an iframe use a POST rather than a GET request? I am not trying to post a form into the iframe but load the iframe depending on data generated on the server.

Unfortunately, I can't use Javascript in this case (because it is the company's policy that the checkout must be possible without JS).

like image 373
Leonard Ehrenfried Avatar asked Nov 05 '22 18:11

Leonard Ehrenfried


1 Answers

No. IFRAME SRC="/yourscript" always uses a GET.

(You could POST to the IFRAME, or you can GET a page inside the IFRAME that POSTs a form using JS; but you specifically said those aren't viable for you)

like image 114
Piskvor left the building Avatar answered Nov 12 '22 18:11

Piskvor left the building