How to send parameter to Iframe with a HTTP POST request

Viewed 85319

I have to send some parameter to an IFRAME with POST method. I have read here Setting the HTTP request type of an <iframe> that it isn't possible. I'm thinking a solution in Javascript but I can't implement it so I can't test if it is a valid solution for this issue. I want to ask if someone has the same problem and if it is possible to solve and in positive case how to?

4 Answers

Proposed solution works almost fine in my case, problem is that my form submitting returns an authorization cookie. Website that is rendering iframe is located on different domain that iframe website and this method returns me an error that I can't set the cookies. Is there a secure way to fix this?

enter image description here

Related