Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-11T00:01:35.323Z
Answers.LastActivityDate: 2023-05-11T00:01:35.323Z
Answers.UserDisplayName: Trevor Orr
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-09T22:07:33.680Z
Comments.Text: 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).
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-09T22:28:47.973Z
Comments.Text: I have tried Chrome, Edge, Opera and Firefox.  The only I have got to work is Opera on my cell phone.
Comments.UserDisplayName: Trevor Orr
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-09T23:53:09.510Z
Comments.Text: I also just installed Brave and get the same result with it.
Comments.UserDisplayName: Trevor Orr
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-10T03:23:38.070Z
Comments.Text: 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`?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-10T14:35:56.417Z
Comments.Text: 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
Comments.UserDisplayName: Trevor Orr
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-10T17:07:04.703Z
Comments.Text: Glad you're all sorted! Want to add what worked for you as an official answer in case it helps someone in the future?
Comments.UserDisplayName: Brad Bell
Tags: <control-panel><admin><login>
Title: Can't login to control panel
ThreadText: # 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.
  
  
  ---
  
  