Trying to implement just a a href link to translate it with dynamic parameters. The problem that I am facing (on all website that I made with hugo), when I put it through, the site is not loading Style CSS and all look ugly.
Integrity attribute is to allow the browser to check the file source to ensure that the code is never loaded if the source has been manipulated.
I like fingerprinting, and don’t want to give up on that, but also would like to have the option to through the site through Google Translator or other services with proper style.
Any advice?
I can simply drop integrity leaving everything else, but is there better approach?
From MDN, Cross-Origin Resource Sharing and Subresource Integrity
For subresource-integrity verification of a resource served from an origin other than the document in which it’s embedded, browsers additionally check the resource using Cross-Origin Resource Sharing (CORS), to ensure the origin serving the resource allows it to be shared with the requesting origin. Therefore, the resource must be served with an Access-Control-Allow-Origin header that allows the resource to be shared with the requesting origin; for example:
For what I need that, I just want a link that will point to google translate. Simple and get what I want, so don’t want to get this more complicated, when I don’t need it.