<p>In chrome I added my domain in the config setting for Sites that can always use cookies and checked the option for Including third-party cookies on this site.</p>

CC BY-SA 4.0
2023-05-11T00:01:35.323Z
2023-05-11T00:01:35.323Z
Trevor Orr
<p>not sure what I did but my DEFAULT_SITE_URL in .env was set to http instead of https 0and when I tried to login to control panel on my desktop the page would load but when I submit the login form it is posting to http and the browser is blocking the submit.  I updated the url to https and same thing.</p>
<p>I was able to login to the control panel on my cell phone using opera and updated the site url from http to https as well and I still get the same issue on my desktop.  It seems that the control panel assets are still trying to be loaded over http instead of https so that browser is blocking them.</p>
<p>I have cleared all caches. I am on 3.8.7 if that matters.</p>
<p>Ideas of what else I can to have the login form post to https instead of http?</p>

CC BY-SA 4.0
2023-05-09T22:07:33.680Z
Can you try a different browser? I know Chrome can be particularly heavy-handed in caching SSL-related information (in spite of clearing the browser's cache).
Brad Bell
CC BY-SA 4.0
2023-05-09T22:28:47.973Z
I have tried Chrome, Edge, Opera and Firefox.  The only I have got to work is Opera on my cell phone.
Trevor Orr
CC BY-SA 4.0
2023-05-09T23:53:09.510Z
I also just installed Brave and get the same result with it.
Trevor Orr
CC BY-SA 4.0
2023-05-10T03:23:38.070Z
Hrm... how are you using DEFAULT_SITE_URL in Craft? Pulling it in under Sites in the Control Panel? Are you additionally defining site URLs in `config/general.php`?
Brad Bell
CC BY-SA 4.0
2023-05-10T14:35:56.417Z
I am now able to login to the admin.  In chrome I added my domain in the config setting for Sites that can always use cookies and checked the option for Including third-party cookies on this site.  That seems to allow me to log into the admin
Trevor Orr
CC BY-SA 4.0
2023-05-10T17:07:04.703Z
Glad you're all sorted! Want to add what worked for you as an official answer in case it helps someone in the future?
Brad Bell
<control-panel><admin><login>
Can't login to control panel
# Can't login to control panel

(Asked by: username_0 on 2023-05-09)

not sure what I did but my DEFAULT\_SITE\_URL in .env was set to http instead of https 0and when I tried to login to control panel on my desktop the page would load but when I submit the login form it is posting to http and the browser is blocking the submit. I updated the url to https and same thing.

I was able to login to the control panel on my cell phone using opera and updated the site url from http to https as well and I still get the same issue on my desktop. It seems that the control panel assets are still trying to be loaded over http instead of https so that browser is blocking them.

I have cleared all caches. I am on 3.8.7 if that matters.

Ideas of what else I can to have the login form post to https instead of http?

**Tags:** control-panel, admin, login

> **Comments:**
> **username_1**: Can you try a different browser? I know Chrome can be particularly heavy-handed in caching SSL-related information (in spite of clearing the browser's cache).  
> **username_0**: I have tried Chrome, Edge, Opera and Firefox.  The only I have got to work is Opera on my cell phone.  
> **username_0**: I also just installed Brave and get the same result with it.  
> **username_1**: Hrm... how are you using DEFAULT_SITE_URL in Craft? Pulling it in under Sites in the Control Panel? Are you additionally defining site URLs in `config/general.php`?  
> **username_0**: I am now able to login to the admin.  In chrome I added my domain in the config setting for Sites that can always use cookies and checked the option for Including third-party cookies on this site.  That seems to allow me to log into the admin  
> **username_1**: Glad you're all sorted! Want to add what worked for you as an official answer in case it helps someone in the future?  

---

## 1 answers

### Answer by username_0 on 2023-05-11. Score: 2

In chrome I added my domain in the config setting for Sites that can always use cookies and checked the option for Including third-party cookies on this site.


---

