Hi,
I need to display an external website inside a form so I have used an IFramePanel and placed the code like this:
string targetUrl = $"https://localhost:7226/?reportName={requestedReportName}";
iFramePanel1.Url = targetUrl;
It works fine but I need to pass also a Token in request header.
Is it possible to inject an HTTP Header in the iframe request?
Do I need to use Javascript?
Many Thanks!
Luca
You can only set URL parameters- you cannot set the http header in the iFrame URL. You cannot inject an HTTP Header in the iFrame request.
You will need to handle the request on the server side.
Consider using postMessage: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
Please login first to submit.