liorocks/pingcrm-react

CORS issues with BrowserSync

alechko opened this issue · 1 comments

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

@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.