zhaohuabing / hugo-theme-cleanwhite

A clean, elegant blog theme for hugo
Apache License 2.0
725 stars 335 forks source link

Comments #88

Closed EagleYing closed 3 years ago

EagleYing commented 4 years ago

I point my username.github.io to a domestic server and set my disqus-php-api on another oversea server but it did not work:

'''Access to XMLHttpRequest at 'https://disqus.my-over-seaserver.com/user.php' from origin 'https://blog.my-domestic-server.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.'''

How can I fix it?

zhaohuabing commented 4 years ago

Try to put them under the same parent domain. For example, if your blog is at https://blog.my-domestic-server.com,put your disqus api at https://disqus api.my-domestic-server.com. Just the domain name, the real location of your disqus can still be overseas.

EagleYing commented 4 years ago

Thanks the error solved, but a new error : image I have no idea about this

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.