Vue from file system HTML and Laravel authentication
I'm following Learn VUE 2: step by step tutorial on Laracast. I have an issue with Axios. It is could not able to connect to localhost (server) ajax response URL.
My current situation is the an HTML file on C:\my\vue\index.html and it returns the following error on the console:
XMLHttpRequest cannot load http://localhost/cavity/show/53/1. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 401.
The only way that makes the Ajax request works is to copy the file to public\vue\html and access http://localhost/vue/index.html in the same web browser in which I had signed to the application.
The error message tells something about authentication and authorization so I wonder How could I able to make my application's Ajax response accessible with using a mean of authentication and authorization something like Facebook's graph?!
Please or to participate in this conversation.