Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

CORS ERROR #13

Open
gachie opened this issue Feb 17, 2021 · 2 comments
Open

CORS ERROR #13

gachie opened this issue Feb 17, 2021 · 2 comments

Comments

@gachie
Copy link

gachie commented Feb 17, 2021

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?

@Crasheng
Copy link

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.

@abyssgoing
Copy link

check config/cors.php

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants