# Locked myself out of the Mautic frontend due to misconfiguration

**URL:** https://forum.mautic.org/t/locked-myself-out-of-the-mautic-frontend-due-to-misconfiguration/28361
**Category:** Product Support
**Created:** [June 19, 2023, 12:36pm UTC](https://forum.mautic.org/t/locked-myself-out-of-the-mautic-frontend-due-to-misconfiguration/28361 "2023-06-19T12:36:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![waldgeist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/waldgeist/32/5384_2.png) [@waldgeist](https://forum.mautic.org/u/waldgeist)
#### Post date: [June 19, 2023, 12:36pm UTC](https://forum.mautic.org/t/locked-myself-out-of-the-mautic-frontend-due-to-misconfiguration/28361/1 "2023-06-19T12:36:57Z")

</div>

I have accidently locked out myself from the Mautic server. I was trying to setup CORS (i.e. to setup the allowed origins to `*`). Since this did not work by setting the CORS switch to disabled (it sent an empty origins header then), I put the `*` in the next field, which was labelled “Trusted sites” (if I remember correctly).

But when I did this, the web frontend immediately reported a no access error. I wasn’t aware that this setting would affect the frontend as well. How can I reset this without access to the web frontend? I am running Mautic on the Bitnami stack offered by AWS. Mautic is quite an important part of our infrastructure, so I need to get this back ASAP. Thanks.

---

<div class="post-metadata">

### Author: ![waldgeist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/waldgeist/32/5384_2.png) [@waldgeist](https://forum.mautic.org/u/waldgeist)
#### Post date: [June 19, 2023, 12:55pm UTC](https://forum.mautic.org/t/locked-myself-out-of-the-mautic-frontend-due-to-misconfiguration/28361/2 "2023-06-19T12:55:32Z")

</div>

Thanks to Ruth Cheesley on Slack, I was able to resolve this.

The setting `trusted_hosts` can be found in `local.php`, which resides under `app/config`. On a Bitnami instance, the full path is `/apps/mautic/htdocs/app/config`.

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [June 19, 2023, 1:17pm UTC](https://forum.mautic.org/t/locked-myself-out-of-the-mautic-frontend-due-to-misconfiguration/28361/3 "2023-06-19T13:17:30Z")

</div>

Hi there,

As discussed on Slack, you’ll need to figure out where Bitnami saves your app\>config\>local.php file which is where settings are saved.

The default would be this:

```auto
	'trusted_hosts' => array(

	),
	'trusted_proxies' => array(

	),

```

So I’d reset it to that, and then you should be able to clear the cache and get back into your Mautic instance.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)
#### Post date: [June 21, 2023, 1:17am UTC](https://forum.mautic.org/t/locked-myself-out-of-the-mautic-frontend-due-to-misconfiguration/28361/4 "2023-06-21T01:17:44Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
