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

fix: use javascript_include_tag in vite_client_tag #238

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

CyberAP
Copy link
Contributor

@CyberAP CyberAP commented Aug 9, 2022

Description 📖

In order to inherit all the features of the javascript_include_tag it should be used within vite_client_tag. Otherwise you won't get CSP support and all other built-in features.

Background 📜

You won't be able to work with vite_client_tag in a CSP environment without this change.

The Fix 🔨

Use javascript_include_tag instead of tag.script

In order to inherit all the features of the `javascript_include_tag` it should be used within `vite_client_tag`. Otherwise you won't get CSP support and all other built-in features.
@ElMassimo
Copy link
Owner

Looks good, thanks!

@ElMassimo ElMassimo changed the title Use javascript_include_tag in vite_client_tag fix: use javascript_include_tag in vite_client_tag Aug 11, 2022
@ElMassimo ElMassimo merged commit 3d8b366 into ElMassimo:main Aug 11, 2022
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