I am trying to build my application in production environment, which seems fine. But as soon as I access the application, I get the following errors in the console:
Error parsing 'integrity' attribute. The specified hash algorithm must be one of 'sha256', 'sha384', or 'sha512'.
The hash seems fine, the problem is that the integrity attributes is like:
<script src="appname/path/assets/filename.js" integrity="appname/path/sha256...."></script>
instead of:
<script src="appname/path/assets/filename.js" integrity="sha256...."></script>
I don't really know why is it adding the name and the path in the first place, or where or how it's configured.
I also added the type attribute, that also got prepended with appname/path
Can anyone please help me with the correct configuration for this?
Aucun commentaire:
Enregistrer un commentaire