Sep 3, 2016
0
Level 11
How do I post a Vue Post Ajax from mysite.com to api.mysite.com ?
Currently, I build an Lumen api.mysite.com for Laravel mysite.com
When I try to post to api.mysite.com using Vue http post,
this.$http.post(this.api_url('me/shop'), this.fields)
.then( (response) => {console.log(response)} )
.catch( (response) => {console.log(response)} );
it gets this error:
Response for preflight has invalid HTTP status code 405
Well, how can I fix this? Is this some kind of Cros?
Please or to participate in this conversation.