ZMGC Application empowers members with on-line tools, by providing a free infrastructure to easily exchange, analyse and disseminate information in a scalable, non-blocking manner using only Open Source software build by the community for the community. It is about building lasting and deep solidarity versus cheap and fast Facebook or Twitter campaigns
and returns the list, but when we call it from the TZM-Network widget via AJAX, we get
XMLHttpRequest cannot load http://www.zmgc.net/chapters. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.khine.net' is therefore not allowed access.
On FireFox this is not an issue.
@tomarcafe discovered some possible solutions, also, seems chrome devs dont hurry to fix this bug - from 2012.
Currently the chapters.json file is being pulled by the TZM-Network widget to list chapter country names and URL, so this works on Chrome
http://www.zmgc.net/chapters
and returns the list, but when we call it from the TZM-Network widget via AJAX, we get
XMLHttpRequest cannot load http://www.zmgc.net/chapters. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.khine.net' is therefore not allowed access.
On FireFox this is not an issue.
@tomarcafe discovered some possible solutions, also, seems chrome devs dont hurry to fix this bug - from 2012.
so, listing: https://stackoverflow.com/questions/3136140/cors-not-working-on-chrome - (weird/tricky - set content-type to text/plain) https://groups.google.com/forum/#!topic/angular/z7cVEI-Jo3s - node debug session:) --- also with a point to https://npmjs.org/package/cors#enabling-cors-pre-flight this package
http://www.sencha.com/forum/showthread.php?273957-Chrome-CORS-problem-with-ST2.3.0 - (use withCredentials: true request header)
http://software.dzhuvinov.com/cors-filter-browser-bugs.html - some other fix way..