How to add X-frame options in Trail license ?

0
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.
asked
1 answers
1

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:

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

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. https://docs.mendix.com/refguide/progressive-web-app/csp/ 

Good luck! 

answered