Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS Error #9

Closed
sayedahmadnawid opened this issue Feb 11, 2023 · 2 comments
Closed

CORS Error #9

sayedahmadnawid opened this issue Feb 11, 2023 · 2 comments

Comments

@sayedahmadnawid
Copy link

I have been trying to figure out this issue, I couldn't really fix this. I thing there is issue with CORS. Though I traced, everything regarding the CORS is ok.

Could anyone please help me?

Screen Shot 2023-02-11 at 18 17 02

@gdarko
Copy link
Owner

gdarko commented Feb 13, 2023

Hey @sayedahmadnawid ,

Can you please check in your .env file, your domains should be the same. Something like this:

APP_URL=http://localhost:8000

SANCTUM_STATEFUL_DOMAINS=localhost:8000
SESSION_DOMAIN=localhost

Let me know if that helps.

Best,
Darko

@sayedahmadnawid
Copy link
Author

@gdarko

Thank you very much. Exactly, this solution helped me.

@gdarko gdarko pinned this issue Feb 13, 2023
@gdarko gdarko closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants