loading...

re: Building Vue.js Client SPA Token-Based Authentication with Laravel Sanctum VIEW POST

TOP OF THREAD FULL DISCUSSION
re: It is set but still same error. Could it be because the API and frontend are in different directories? I have tried just about everything and I am ...

Have you set baseURL and headers in main.js?

Vue.prototype.$http = axios
Vue.prototype.$http.defaults.baseURL = 'https://example.com/api'
Vue.prototype.$http.defaults.headers.post['Content-Type'] = 'application/json'

Just tried this and same error.

Could you share your repositories? I could have a look tomorrow. My email address is roman@paprotsky.com

Cool thank you. I sent you an email.

Thank you!

code of conduct - report abuse