vuetify-admin icon indicating copy to clipboard operation
vuetify-admin copied to clipboard

CORS ERROR

Open gachie opened this issue 3 years ago • 2 comments

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?

gachie avatar Feb 17 '21 08:02 gachie

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.

Crasheng avatar Jun 16 '21 09:06 Crasheng

check config/cors.php

abyssgoing avatar Jul 24 '21 09:07 abyssgoing