I stumbled upon a weird bug today, I’d love your input on that.
I’m using Hugo’s built-in integrity check on resources, for my JavaScript. I had it set to it made use of .Permalink
and everything was working fine.
I did a quick commit in which I changed all my .Permalink
to .RelPermalink
(easier to test deploys on Netlify) and suddenly I was hit with a CORS error. Going back to using .Permalink
on these assets fixed the issue.
You can check the problematic deploy here: https://5eaaed0e44a863000654e9c3--primative.netlify.app/ (check out the console).
Can anyone tell me why this behavior occurs? Is it normal? And is there a way (for consistency sake on my code) to use only .RelPermalink
and still benefit from assets integrity check?
Thanks everyone.