Abhilash Sathe
2016-11-07 11:32:17 UTC
XMLHttpRequest cannot load http://serverthati'mrequesting.com?id=1. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8080' is therefore not allowed access. I used CORS
add on in chrome and then it works. But otherwise it doesn't. How can I fix
this? I'm using node js server. polymer-cli tools.
<*iron-ajax*
*id=**"requestRepos"*
*headers=**'{"Accept": "*/*"}'*
*url=**"*http://serverthati'mrequesting.com*"*
*params=**"{{requestParams}}"*
*handle-as=**"json"*
*on-response=**"handleResponse" *></*iron-ajax*>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/7cccf55b-bb88-49b5-81ab-9c1f0c864d1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8080' is therefore not allowed access. I used CORS
add on in chrome and then it works. But otherwise it doesn't. How can I fix
this? I'm using node js server. polymer-cli tools.
<*iron-ajax*
*id=**"requestRepos"*
*headers=**'{"Accept": "*/*"}'*
*url=**"*http://serverthati'mrequesting.com*"*
*params=**"{{requestParams}}"*
*handle-as=**"json"*
*on-response=**"handleResponse" *></*iron-ajax*>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/7cccf55b-bb88-49b5-81ab-9c1f0c864d1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.