Ajax edit does not work because it’s not https
-
Hello,
I can not update Titles and Descriptions from the Page listing using the ajax functionality. In console I get the error:Mixed Content: The page at ‘https://raver.life/wp-admin/edit.php?post_type=page’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://raver.life/wp-admin/admin-ajax.php’. This content should also be served over HTTPS.
As you can see in the source, the requestUrl specified in var aioseopadmin is https rather than https. How can I change this to https?
<script> if (document.location.protocol != "https:") { document.location = document.URL.replace(/^http:/i, "https:"); } </script> <script type='text/javascript' src='https://raver.life/wp-includes/js/tw-sack.min.js?ver=1.6.1'></script> <script type="text/javascript"> //<![CDATA[ var aioseopadmin = { blogUrl: "https://raver.life", pluginUrl: "http://raver.life/wp-content/plugins/all-in-one-seo-pack/", requestUrl: "http://raver.life/wp-admin/admin-ajax.php", imgUrl: "http://raver.life/wp-content/plugins/all-in-one-seo-pack/images/", Edit: "Edit", Post: "Post", Save: "Save", Cancel: "Cancel", postType: "post", pleaseWait: "Please wait...", slugEmpty: "Slug may not be empty!", Revisions: "Revisions", Time: "Insert time" } //]]> </script>
The topic ‘Ajax edit does not work because it’s not https’ is closed to new replies.