# 403 errors after adding JS to header

**URL:** https://meta.discourse.org/t/403-errors-after-adding-js-to-header/25552
**Category:** Support
**Created:** [February 23, 2015, 4:47am UTC](https://meta.discourse.org/t/403-errors-after-adding-js-to-header/25552 "2015-02-23T04:47:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tcn33](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tcn33/32/108598_2.png) [@tcn33](https://meta.discourse.org/u/tcn33)
#### Post date: [February 23, 2015, 4:47am UTC](https://meta.discourse.org/t/403-errors-after-adding-js-to-header/25552/1 "2015-02-23T04:47:41Z")

</div>

I’m getting a lot of 403 errors when doing anything - replying to posts, changing settings etc. This happened right after adding a bit of JS to the header, so I’m trying to remove it as step 1. Problem is, the errors prevent me from saving the changed header.

So that I can delete it manually, where are site customizations like this kept?

---

<div class="post-metadata">

### Author: ![sigurdur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sigurdur/32/122516_2.png) [@sigurdur](https://meta.discourse.org/u/sigurdur)
#### Post date: [February 23, 2015, 5:12am UTC](https://meta.discourse.org/t/403-errors-after-adding-js-to-header/25552/2 "2015-02-23T05:12:20Z")

</div>

You can use your web developer tools in your browser to do that for you.

**WARNING**  
This will delete your CSS and HTML customizations without warning!  
NOT SAFE unless you don’t care about your customizations.

How To:  
Make sure to be logged in as admin, open up the developer tools and paste the following code in it, then press [return]

```
$.ajax({url: '/admin/site_customizations/1', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/2', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/3', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/4', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/5', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/6', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/7', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/8', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/9', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/10', type: 'DELETE'});
$.ajax({url: '/admin/site_customizations/11', type: 'DELETE'});

```

Again, **THIS IS NOT SAFE** unless you don’t care about your customizations.

After this, just hit F5 and reload the page.

Good luck! 🙂

---

<div class="post-metadata">

### Author: ![tcn33](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tcn33/32/108598_2.png) [@tcn33](https://meta.discourse.org/u/tcn33)
#### Post date: [February 23, 2015, 5:15am UTC](https://meta.discourse.org/t/403-errors-after-adding-js-to-header/25552/3 "2015-02-23T05:15:48Z")

</div>

Perfect, that did the trick. Thanks!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [February 23, 2015, 9:24am UTC](https://meta.discourse.org/t/403-errors-after-adding-js-to-header/25552/4 "2015-02-23T09:24:45Z")

</div>


