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

Handle Base64 encoded scripts #150

Open
AndrewKahr opened this issue Jun 2, 2023 · 1 comment
Open

Handle Base64 encoded scripts #150

AndrewKahr opened this issue Jun 2, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@AndrewKahr
Copy link
Contributor

AndrewKahr commented Jun 2, 2023

When using certain minifiers/js optimizers like autoptomize, scripts are encoded into base64. This leads to any links within the script not being replaced.

Would it be possible for simply static to decode base64 within script tags encoded as base64, replace urls, then reencode as base64?

Example:
<script src="data:text/javascript;base64,DQERWSRERWERE...."></script>

@patrickposner patrickposner added this to the 2.4 milestone Jun 21, 2023
@patrickposner patrickposner added the enhancement New feature or request label Jun 21, 2023
@patrickposner
Copy link
Collaborator

Related: #151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants