Jump to content

Recommended Posts

Posted

Hi,

 

With ISAPI ap, can anyone tell me how to set Content Security Policy Header for UNIgui?

 

I have tried to set this in IIS 8 using the Header Response but no matter what options I set, my ap stops loading (loading....)

 

Thanks in advance.

Mark

  • Administrators
Posted

Hi,

 

You can add a custom meta tag to SeverModule->CustomMeta. However, it is very likely that your uniGUI web app will not load because CSP highly restricts execution of dynamic java script code. uniGUI apps need to dynamically execure JS code. You may find a correct receipt that will work with uniGUI, but it may take several trial and error attempts.

  • Like 1
Posted

Hi Farshad,

Thanks for the speedy reply. OK, sounds like its unlikely to work, but I will try anyway and let you know.

Regards

Mark

  • 2 weeks later...
  • 2 years later...
  • 2 years later...
  • 1 year later...
Posted
On 7/14/2022 at 9:50 AM, bbm said:

Hi,

any solution for that?

Best regards

on procedure TUniServerModule.UniGUIServerModuleHTTPCommand(

add 

//https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-src
  AResponseInfo.CustomHeaders.AddValue('Content-Security-Policy', 'frame-src ''none''; object-src ''none''; ');

please share result !

 

×
×
  • Create New...