Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
132 views
in Technique[技术] by (71.8m points)

javascript - Include a base64 tag at the start of each script from an Angualr project

In my index.html file in my angular project I have a script tag in the page head that looks something like this.

<script nonce="1234567890"></script>

This works for the majority of the pages, but in several javascript files it does not run. these files are excluded :

runtime.js
polyfills.js
mains.js 

Is there a better solution to get this script tag to run on every page and javascript file within the app, I understand why they are not executed on these pages because they are not directly linked to the index.html file.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...