Ignition Perspective Tomcat X-Frame Options

Hey everyone,

I would like to embed some pages from my Perspective project INTO our company website. I’m hoping I can edit web.xml to achieve this. I’ve found a number of web.xml files, and I’m not sure which one to edit.

Here are a couple of such examples:

C:\Program Files\Inductive Automation\Ignition\webserver\webapps\main\WEB-INF

and also

C:\Program Files\Inductive Automation\Ignition\webserver\webapps\commissioning\WEB-INF

Any help would be appreciated, thanks in advance.

I haven’t done this myself, but the proper search term nowadays is Content Security Policy.

Or, even better, the user manual:
https://docs.inductiveautomation.com/display/DOC81/Gateway+Configuration+File+Reference#GatewayConfigurationFileReference-XFrameOptions

3 Likes

Thanks for the link. I added these 3 lines under # Additional Java Parameters in the ignition.conf file.

wrapper.java.additional.2=-Dignition.http.session.cookie.same-site.enabled=true
wrapper.java.additional.3=-Dignition.http.session.cookie.same-site.value=None
wrapper.java.additional.4=-Dignition.http.header.x_frame_options.enabled=false

For anyone else trying to do this, note you will need HTTPS enabled for this to work. Here is a link where you can read why.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite