# Inserting Javascript yields 403 error

**URL:** https://meta.discourse.org/t/inserting-javascript-yields-403-error/154738
**Category:** Development
**Created:** [June 13, 2020, 9:42am UTC](https://meta.discourse.org/t/inserting-javascript-yields-403-error/154738 "2020-06-13T09:42:31Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 16, 2022, 10:50am UTC](https://meta.discourse.org/t/inserting-javascript-yields-403-error/154738/7 "2022-08-16T10:50:23Z")

</div>

> **Let's tuck this away as I don't think it's useful after all...**
>
> Could you try adding it as a custom theme component instead?
> 
> Quick how-to:
> 
> - Go to `/admin/customize/themes`
> - Click on **install** and then **create new**
> - Give it a name, and select ‘component’.
> - **Create**
> - Add it to your theme
> - Click on the **Edit CSS/HTML** button and make your changes there
> 
> And save. 👍
> 
> ![image](https://global.discourse-cdn.com/meta/original/4X/f/1/f/f1fb3c36fa40c8b12036c919475d255453d85ccb.png)
> 
> * * *
> 
> Though I’ve also tested it in my default theme header too, and that has worked. So there may be something unusual about your setup. Does it work when you try to trigger it in [safe mode](https://meta.discourse.org/t/53504?silent=true)?

Hang on, this sounds familiar. Do you have any browser extensions you can turn off? (or try in a private window) And is there more detail on the errors in the console?

---

_[View the full topic](https://meta.discourse.org/t/inserting-javascript-yields-403-error/154738)._
