I'm geting "No 'Access-Control-Allow-Origin' header is present on the requested resource" when accesing login_with_goople.php via XMLHttpRequest
Has a solution, can be avoided?
Thanks
Manuel Lemos - 2015-01-09 00:17:37 - In reply to message 3 from Francisco Diego Torrado
Yes, I guess that AJAX request is sending that header but it shouldn't. Are you using custom JavaScript or some library like jQuery to send the AJAX request?
Try seeing if you can disable that header. Alternatively you can also try this class that does not send that header.
Manuel Lemos - 2015-01-09 20:08:04 - In reply to message 6 from Francisco Diego Torrado
I think that is because you are using it from localhost.
You may want to try creating a new local domain in your machine and configure your Web server to use it as alternative domain name.
If you are using Linux or something similar you can add a new local domain editing the /etc/hosts files changing the localhost a line to look like like this.