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

[Bug]: #1245

Closed
IsaacHatilima opened this issue Jan 21, 2025 · 1 comment
Closed

[Bug]: #1245

IsaacHatilima opened this issue Jan 21, 2025 · 1 comment
Labels

Comments

@IsaacHatilima
Copy link

Platform

macOS

Operating system version

macOS Sequoia 15.2

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.14.1

PHP Version

8.4

Bug description

Breeze application with React + Inertia + Laravel with the new composer run dev or npm run dev throws cors error on dir.test but runs on 127.0.0.1:8000. If assests are built with npm run build, dir.test work.

Steps to reproduce

create new breeze app with react on node 22.13.1

Relevant log output

@issuelabeler issuelabeler bot added the macOS label Jan 21, 2025
@mpociot
Copy link
Member

mpociot commented Jan 21, 2025

Yes, this is related to a change in the Vite codebase.

There's a draft PR to the Laravel Vite plugin to fix this, see laravel/vite-plugin#318

In the meantime, please change your APP_URL in your .env file to http://your-local-site.test.

@mpociot mpociot closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants