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 issues with BrowserSync #38

Closed
alechko opened this issue Jul 13, 2021 · 1 comment
Closed

CORS issues with BrowserSync #38

alechko opened this issue Jul 13, 2021 · 1 comment

Comments

@alechko
Copy link

alechko commented Jul 13, 2021

I'm using DDEV as my Docker backend env and when launching the project with BrowserSync, the project get loaded from localhost:3000 or similar.

The main pages load with no issue, but any XHR action (for example pagination) performed from the page throwing the following CORS errors:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://pingcrm-react.ddev.site/organizations?page=2. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://projectddev.site/organizations?page=2. (Reason: CORS request did not succeed).

Sometimes the first XHR request works, but never the second or the following ones.

Is there anything I can do to make it work?

image

@Landish
Copy link
Owner

Landish commented May 20, 2024

@alechko

This repository has been updated to Laravel 11. Instead of Laravel mix now it uses Vite.

Please update it in order to see if the issue still exists.

Closing this one for now.

@Landish Landish closed this as completed May 20, 2024
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