vuetify-admin
vuetify-admin copied to clipboard
CORS ERROR
I am running the API at http://localhost:8081 and the Admin UI at http://localhost:8080. The UI loads well but on accessing the API, I get "Access to XMLHttpRequest at ‘http://localhost:8081' from origin ‘http://localhost:8080/' has been blocked by CORS policy."
How can I avoid the error?
Make sure to run "api" on 8000 and "frontend" on 8080.. you won't see such an error.. otherwise you will have to change different values in the code.
check config/cors.php