White page while editing pages

Hi, I bought X Theme .
I’m still in localhost development, since a while now when I do try to edit some pages using cornerstone, the http://localhost/mysite/x/#/content page with cornerstone loading gif never ends.

The browser console is telling about cornerstone-endpoint, I don’t know if it’s related to this but here is the line.
Access to XMLHttpRequest at ‘http://localhost/mysite/cornerstone-endpoint’ (redirected from ‘http://localhost/mysite/cornerstone-endpoint’) from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

How can I fix this ?

thanks

Hello Ben,

Thanks for writing in!

Please make sure that the Site URL and WordPress Address URL in Settings > General is the same as the url of your WordPress dashboard. ​We also recommend that you increase your memory allocated to PHP. To increase it, please edit your wp-config.php file and insert these lines:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

We would loved to know if this has work for you. Thank you.

Hi, I already have those 2, as the support already suggested it to me some weeks ago for another subject.
this didn’t resolve the issue.

Hello Ben,

Is ModSecurity enabled in your local host?
Please whitelist: http://localhost/mysite/x/

Hope this helps.

Hi, yes, as it is on my hosting server, my provider has it enabled.
as yoiu know : it’s not recommended due to potential security issues.

no other workaround ?

thx

Hi Ben,

You mean your localhost is also your hosting server? It’s not recommended disabling any security of firewall, but it’s just a quick troubleshooting just to confirm if it’s the cause. If it’s, you can have it enabled and just white list that specific request. And for that, I recommend contacting your hosting provider that manages the security.

Though, we’re not really sure what’s happening on your site since it’s on your local. The information above is not enough since it only display CORS related issue, which could be configuration related too. But based on that, it could be related to this https://stackoverflow.com/questions/41965066/access-to-image-from-origin-null-has-been-blocked-by-cors-policy (not the image).

The origin is null, hence, CORS issue is triggered. This could be related too https://stackoverflow.com/questions/10883211/deadly-cors-when-http-localhost-is-the-origin

It’s not builder related issue but there is a problem with requests due to localhost setup.

Thanks!

I’m asking my hosting provider to know, and replicate the same on localhost ( my computer)

You are saying asking them to white list this request :
http://localhost/mysite/x/#/content
or a specific other one ?

thank you

Hello Ben,

Please tell your hosting provider to whitelist this url:

https://www.example.com/x
```

Of course the `example.com` needs to be replaced with whatever is the url of the localhost or the domain which they are testing.

Hope this helps.

Hi,
mod_security disabled.
still have same problem
console says :
jquery.js?ver=1.12.4:4 Mixed Content: The page at ‘https://www.yogamandiram.cl/x/#/content/54’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://www.yogamandiram.cl/cornerstone-endpoint’. This request has been blocked; the content must be served over HTTPS.

anything we can do ?

Can I provide you credentials ? is it private ticket ?

I think this is because of mixed content, see:
Mixed Content: The page at ‘https://www.yogamandiram.cl/x/#/content/73’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://www.yogamandiram.cl/cornerstone-endpoint’. This request has been blocked; the content must be served over HTTPS.

I have the same configuration as other websites where I never had this problem ( another theme)
please help

best

Hi, yes now I can assure you that it is SSL HTTPS error.
somehow, a http link http://www.mydomain.tld/cornerstone-endpoint
is not loaded as not in https .
I did add a white list for this url into the rewriting paths of the cloudflare SSL simple plugin for WP but it didn’t work
maybe you have a diferent workaround.

best.

Hi Ben,

To make sure that you will not have a Mixed Content problem, you need to follow the steps below:

  • Backup your website completely/
  • Go to WordPress Dashboard > Settings > General.
  • Make sure that both Site URL and Home URL there have https and hit the save button.
  • Install the Search and Replace plugin.
  • Read their documentation to know how to change all the occurrences of the database to https.
  • Replace all occurrences of http://www.example.com with https://www.example.com.

Replace example.com with the domain of your website.

kindly get back to us with the result of the steps above and URL/User/Pass of your WordPress dashboard using the Secure Note functionality of the post to follow up the case if you still have problems.

Thank you.

thank you, it was a SSL configuration with cloudflare witch makes the bug.
I did resolve it
thank you

best

Hello Ben,

We are just glad that you have figured it out a way to correct the said issue.
We really appreciate for letting us know!

Best Regards.

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