CORS issue with Vue.js
问题 I'm using: Vue 2.0.3 vue-router 2.0.1 vuex 0.8.2 vue-resource 0.7.0 And after trying to login to my page when using remote API, not the locally run one, I get cors error like following vue-resource.common.js?2f13:1074 OPTIONS https://mywebsite/api/auth/login (anonymous function) @ vue-resource.common.js?2f13:1074 Promise$1 @ vue-resource.common.js?2f13:681 xhrClient @ vue-resource.common.js?2f13:1033 Client @ vue-resource.common.js?2f13:1080 (anonymous function) @ vue-resource.common.js?2f13