Title: JavaScript/Base64 error.
Last modified: May 31, 2023

---

# JavaScript/Base64 error.

 *  Resolved [RebeccaBlackman](https://wordpress.org/support/users/rebeccablackman/)
 * (@rebeccablackman)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/javascript-base64-error/)
 * Hi Johan,
 * I’m getting the following error in the console. It doesn’t seem to cause any 
   noticeable harm, but curious as to why it’s happening.
 * Refused to load data:text/javascript;base64,DQogIHZhciBpbml0T3B0cyA9IHsNCiAgICBwcm9qZWN0S2V5OiAiZHdpNlBpOHQ2VWFaNmxmcVNMbWYiLA0KICAgIGRlZmF1bHRJbnB1dE1vZGU6IDAsDQogICAgb2JzY3VyZVRleHROdW1iZXJzOiBmYWxzZSwNCiAgICBvYnNjdXJlVGV4dEVtYWlsczogdHJ1ZSwNCiAgfTsNCiAgdmFyIHN0YXJ0T3B0cyA9IHsgdXNlcklEOiAiIiB9Ow0KICAoZnVuY3Rpb24oQSxzLGEseSxlLHIpew0KICAgIHI9d2luZG93Lk9wZW5SZXBsYXk9W2Uscix5LFtzLTEsIGVdXTsNCiAgICBzPWRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpO3Muc3JjPUE7cy5hc3luYz0hYTsNCiAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnaGVhZCc…
   4oaWQpe3IucHVzaChbMixpZF0pfTsNCiAgICByLnNldFVzZXJBbm9ueW1vdXNJRD1mdW5jdGlvbihpZCl7ci5wdXNoKFszLGlkXSl9Ow0KICAgIHIuc2V0TWV0YWRhdGE9ZnVuY3Rpb24oayx2KXtyLnB1c2goWzQsayx2XSl9Ow0KICAgIHIuZXZlbnQ9ZnVuY3Rpb24oayxwLGkpe3IucHVzaChbNSxrLHAsaV0pfTsNCiAgICByLmlzc3VlPWZ1bmN0aW9uKGsscCl7ci5wdXNoKFs2LGsscF0pfTsNCiAgICByLmlzQWN0aXZlPWZ1bmN0aW9uKCl7cmV0dXJuIGZhbHNlfTsNCiAgICByLmdldFNlc3Npb25Ub2tlbj1mdW5jdGlvbigpe307DQogIH0pKCIvL3N0YXRpYy5vcGVucmVwbGF5LmNvbS9sYXRlc3Qvb3BlbnJlcGxheS5qcyIsMSwwLGluaXRPcHRzLHN0YXJ0T3B0cyk7DQo
   = because it does not appear in the script-src directive of the Content Security
   Policy.
 * Feel free to have a look over at [http://www.undeadteds.com](http://www.undeadteds.com)(
   it’s a horror-themed site, just to warn in case it offends).
 * Kind regards,
 * Rebecca
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-base64-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/javascript-base64-error/#post-16785012)
 * There’s no support for loading javascripts through “data:”, but I’ll look in 
   to into it for a future release.
 *  Thread Starter [RebeccaBlackman](https://wordpress.org/support/users/rebeccablackman/)
 * (@rebeccablackman)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/javascript-base64-error/#post-16785779)
 * Hi Johan,
 * No worries, thanks for replying.
 * Any idea what might be calling this script? I’m not even sure what it does, and
   haven’t noticed anything not working, so clearly nothing important.
 * Kind regards,
 * Rebecca
 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/javascript-base64-error/#post-16785858)
 * According to the comment in the code, it’s _OpenReplay Tracking Code_.
 *  Thread Starter [RebeccaBlackman](https://wordpress.org/support/users/rebeccablackman/)
 * (@rebeccablackman)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/javascript-base64-error/#post-16785923)
 * Ah, that’s an analytics service I use. Interestingly, it seems to be tracking
   users just fine as long as they have statistics cookies allowed – I have set 
   the domain for exclusion.
 *  
   I shall mark the topic as resolved. Thanks for your help. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘JavaScript/Base64 error.’ is closed to new replies.

 * ![](https://ps.w.org/cookies-and-content-security-policy/assets/icon-256x256.
   png?rev=2414719)
 * [Cookies and Content Security Policy](https://wordpress.org/plugins/cookies-and-content-security-policy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookies-and-content-security-policy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookies-and-content-security-policy/)
 * [Active Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookies-and-content-security-policy/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [RebeccaBlackman](https://wordpress.org/support/users/rebeccablackman/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/javascript-base64-error/#post-16785923)
 * Status: resolved