Laravel + React Admin CORS issue #2785
Replies: 1 comment
-
Hey! 👋 It sounds like you've configured CORS in Laravel to allow requests from 1. Double-Check CORS SettingsYour
2. CORS and API Platform ConfigurationIf you're using API Platform as a gateway to your Laravel API, make sure the CORS settings are also correctly configured in API Platform. Sometimes API Platform has its own CORS settings, which might override Laravel’s. Check your API Platform configuration (e.g., 3. Confirm That Your React Admin Request Uses
|
Beta Was this translation helpful? Give feedback.
-
I have setup Laravel and API Platform successfully and everything works fine.
Now I am trying to install React admin as explained here: https://api-platform.com/docs/admin/getting-started/ but I get the CORS error below:
The config/cors.php in Laravel seems already by default allowing localhost:3000 where react admin is running, see below:
I found other having same issues but like in docs solutions seems only for Symfony.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions