Answers.Body: <p>To fixed this issue we use drupal secure pages module. From this module configuration we configure redirect to http is resources are not found at secure URL. Also we exclude the JavaScript and ajax from secure pages. </p>
  
  <p>Check if there is any module like secure pages in WordPress. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-03T02:22:32.520Z
Answers.Text: It's creating problem because I think you have enabled forced secure URL.
Answers.UserDisplayName: Prem Patel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-03T02:54:52.143Z
Answers.Text: Force Secure URLs is turned off at the moment.  I tried it to see if it would fix anything, but it said "You need to set up a secure server before you can use the Force Secure URLs option" so I turned it back off again.
Answers.UserDisplayName: createscape
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-03T13:37:58.237Z
Answers.Text: Check your base URL in civicrm.setting s.php file.
Answers.UserDisplayName: Prem Patel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-03T02:21:08.650Z
Answers.LastActivityDate: 2015-12-03T02:21:08.650Z
Answers.UserDisplayName: Prem Patel
Answers.Body: <p>Check your <code>CIVICRM_UF_BASEURL</code> value in <code>civicrm.settings.php</code> and check also the settings under Administer --&gt; System Settings --&gt; Resource URLs.</p>
  <p>In the latter you can force civicrm to load css/js via https.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-07T03:55:38.817Z
Answers.Text: The base url in civicrm.settings.php was set to http://
Answers.UserDisplayName: createscape
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2015-12-03T09:27:45.887Z
Answers.LastActivityDate: 2020-10-13T23:22:08.830Z
Answers.LastEditDate: 2020-10-13T23:22:08.830Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Body: <p>I'm trying to sort out an AJAX bug (edits to contacts not being saved) and the console error says:</p>
  <pre><code>Mixed Content: The page at 'https://studentleadership.ca/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fcontact%2Fview&amp;reset=1&amp;cid=9532' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://studentleadership.ca/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/ajax/inline'. This request has been blocked; the content must be served over HTTPS.`enter preformatted text here`
  </code></pre>
  <p>Originally I thought that it was because the resource URLs weren't set to https, but I changed that and nothing happened.</p>
  <p>I checked the base url and the base url is still http://.  It won't update when I change it to https://, it saves but when I go back to the page it says http://</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-03T03:39:43.800Z
Comments.Text: did you check your settings in both civicrm.settings.php and whatever the WP equivalant of drupal's settings.php?
Comments.UserDisplayName: petednz - fuzion
Tags: <civicrm.settings.php><ajax><ssl>
Title: Mixed content error on SSL site
ThreadText: # Mixed content error on SSL site
  
  (Asked by: username_0 on 2015-12-03)
  
  I'm trying to sort out an AJAX bug (edits to contacts not being saved) and the console error says:
  
  ```
  Mixed Content: The page at 'https://studentleadership.ca/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fcontact%2Fview&reset=1&cid=9532' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://studentleadership.ca/wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/inline'. This request has been blocked; the content must be served over HTTPS.`enter preformatted text here`
  
  ```
  
  Originally I thought that it was because the resource URLs weren't set to https, but I changed that and nothing happened.
  
  I checked the base url and the base url is still http://. It won't update when I change it to https://, it saves but when I go back to the page it says http://
  
  **Tags:** civicrm.settings.php, ajax, ssl
  
  > **Comments:**
  > **username_1**: did you check your settings in both civicrm.settings.php and whatever the WP equivalant of drupal's settings.php?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2015-12-03. Score: 4 | Accepted answer
  
  Check your `CIVICRM_UF_BASEURL` value in `civicrm.settings.php` and check also the settings under Administer --> System Settings --> Resource URLs.
  
  In the latter you can force civicrm to load css/js via https.
  
  > **Comments:**
  > **username_0**: The base url in civicrm.settings.php was set to http://  
  
  ---
  
  ### Answer by username_2 on 2015-12-03. Score: 0
  
  To fixed this issue we use drupal secure pages module. From this module configuration we configure redirect to http is resources are not found at secure URL. Also we exclude the JavaScript and ajax from secure pages.
  
  Check if there is any module like secure pages in WordPress.
  
  > **Comments:**
  > **username_2**: It's creating problem because I think you have enabled forced secure URL.  
  > **username_0**: Force Secure URLs is turned off at the moment.  I tried it to see if it would fix anything, but it said "You need to set up a secure server before you can use the Force Secure URLs option" so I turned it back off again.  
  > **username_2**: Check your base URL in civicrm.setting s.php file.  
  
  ---
  
  