Hello everyone, I just wonder, why is my crossmark button at article pages on website didnt work? But at the other version like pdf, epub and html everything is okay. I’m already add custom tags at distribution pages. What happen?
I’ve updated your forum permissions so you can post links now. Could you give me an example of an article page where Crossmark isn’t working, but where it is working from the equivalent pdf?
That’s correct, except that you should change the “http” to “https” in this line <script src="http://0-crossmark--cdn-crossref-org.libus.csd.mu.edu/widget/v2.0/widget.js"></script>
However, when checking the Content Security Policy (CSP) that you have applied, it specifies that scripts can only be loaded from your own domain and a few other domains (google analytics, cloudflare, etc.). That looks like this:
So, that’s preventing the Crossmark script from working, and that’s why the button image is loading, but it’s not clickable and doesn’t open the Crossmark dialog.
You’ll need to update that CSP to either allow scripts from *.crossref.org in general or from crossmark-cdn.crossref.org in particular.