How to add X-frame options in Trail license ?

Hi,   I am using the trail license version of mendix. I want to add the X-frame-options and Content security policies to the application. I found the the way in setting the http headers under environments in developer portals but those tabs are missing in my case. Please suggest how can I add the values in http headers.
1 answers

Hi Shikha,

I’ve only ever done this with a paid license, so I might be wrong. But you can add your content-security-policy to your index.html (which you can find in your theme folder) in the header. Like so:

 <meta http-equiv=“Content-Security-Policy” content=”default-src ‘self’; img-src *”>

in the content you can change the CSP to your wishes. 

I also found some documentation how to do this in a PWA app, which might help you get in the right direction. 

Good luck!