Content Security Policy Demo
Frontend scripts and styles are written to run under a strict Content-Security-Policy. No eval, no inline event handlers, no remote script CDNs.
What it does
LandTech Extras widgets load their JavaScript and CSS from files on your site. A host can send a strict Content-Security-Policy without breaking tabs, shares, or galleries from this plugin. Elementor and your theme ship their own scripts — this page covers LandTech Extras only.
Example header you can add on staging:
default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'
- Works with free Elementor
- No Elementor Pro required
- Copy the live setup
Live demo
What LandTech Extras does so a strict CSP can stay on:
- No
onclick,onmouseover, or other inline event attributes. - No
javascript:links. - No
eval()ornew Function()in plugin scripts. - Clicks use
data-ltxe-actionand a single delegated listener. - Widget styles live in stylesheets or CSSOM — not HTML
style=""on controls.
Click the tabs and share buttons below. The widgets themselves do not load a third-party script CDN. This marketing site still loads Google Tag Manager.
Where you would use this
A Content-Security-Policy header is a rule the browser enforces: which scripts and styles a page may run. A strict rule blocks inline click handlers, eval(), and files loaded from another website. LandTech Extras keeps its own widgets working when that rule is on.
- Agency handoff. The client's host already sends the header. Tabs, share buttons, and galleries from this plugin still run.
- Schools, clinics, and public offices. The policy forbids loading JavaScript from a third-party CDN.
- Checkout and member pages. A security review does not allow inline JavaScript on pages that take a payment or a login.
- A staging check. Turn the header on for one site, open this page, and confirm LandTech Extras files are not the ones named in the browser console.
Tabs (keyboard + click)
Share buttons (no third-party pixels)
How to implement
- Use the tabs and share buttons in the live demo — they run from plugin files, not inline onclick handlers.
- On your own host, add a CSP header that blocks eval() and remote scripts.
- Open this page (or Tabs, Gallery, Testimonials) and check the browser console for CSP violations from LandTech Extras files.
- Ignore reports from Elementor or the theme unless you control those assets too.