Inject Headers in IFramePanel request

0
0

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 must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.