Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global config security options to meta tag helper #39

Conversation

seangwright
Copy link
Contributor

Adds 2 configuration settings related to security to the <meta> Tag Helper

  • htmx.config.selfRequestsOnly - if set to true, only requests to the same domain as the current document will be allowed

  • htmx.config.allowScriptTags - htmx will process <script> tags found in new content it loads. If you wish to disable this behavior you can set this configuration variable to false

@khalidabuhakmeh
Copy link
Owner

Awesome! Thanks. I'll tag and release this.

@khalidabuhakmeh khalidabuhakmeh merged commit bbed67b into khalidabuhakmeh:main Jan 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants