Closed chaozh closed 9 years ago
take this demo for example, the hexo blog is hosted on DO white the hexo hey is hosted on Github, then you need to add http://nihgwu.github.io to your CORS whitelist to access the api
provided by http://hey.liteneo.com/api
so for the most situations the cors config is not nesserary
@chaozh surprised to find we are schoolmates :astonished:
sorry, i found that i add a custom apiurl for test but built in the release version, working on it
please update to v0.3.1
Great! I'll have a try.
thanks for your feedback
Unable to log in the admin page due to the cross site ajax request. XMLHttpRequest cannot load http://hey.liteneo.com/api/login. The 'Access-Control-Allow-Origin' header has a value 'http://nihgwu.github.io' that is not equal to the supplied origin. Origin 'http://localhost:4000' is therefore not allowed access.