-1
The message says that x-crsf-token
header arent suppprted in the express app. You should add it on your express app. Or disable preflight in cors.
- [Vuejs]-Vue.js net::ERR_INCOMPLETE_CHUNKED_ENCODING Webpack error
- [Vuejs]-How to dynamically add questions to Vue Webpack template's meta.js file?
-1
As the x-csrf-token is blocked by CORS policy. You have to add the Access-Control-Allow-Headers in the index.php file in laravel which you will find in public folder .That will solve your problem. Now paste the following lines in index.php file in laravel.
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type, X-XSRF-Token, Origin');
I hope this will solve your problem
- [Vuejs]-How to make overflow elements not increase height of flexbox?
- [Vuejs]-Vue 2.0 Invalid expression error when increasing the length of a binding expression in a v-for directive
Source:stackexchange.com