the cors is set like this : <?php

return [


/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/

'paths' => ['*'],

'allowed_methods' => ['*'],

'allowed_origins' => ['http://localhost:5173'],

'allowed_origins_patterns' => [],

'allowed_headers' => ['*'],

'exposed_headers' => [],

'max_age' => 0,

'supports_credentials' => true,
];
i get Access to XMLHttpRequest at 'http://127.0.0.1:8000/videos' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Experiences.jsx:20 Error fetching data: AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, request: XMLHttpRequest, …}
fetchData @ Experiences.jsx:20
await in fetchData
(anonyme) @ Experiences.jsx:24
commitHookEffectListMount @ chunk-6BKLQ22S.js?v=8bbb9753:16915
commitPassiveMountOnFiber @ chunk-6BKLQ22S.js?v=8bbb9753:18156
commitPassiveMountEffects_complete @ chunk-6BKLQ22S.js?v=8bbb9753:18129
commitPassiveMountEffects_begin @ chunk-6BKLQ22S.js?v=8bbb9753:18119
commitPassiveMountEffects @ chunk-6BKLQ22S.js?v=8bbb9753:18109
flushPassiveEffectsImpl @ chunk-6BKLQ22S.js?v=8bbb9753:19490
flushPassiveEffects @ chunk-6BKLQ22S.js?v=8bbb9753:19447
(anonyme) @ chunk-6BKLQ22S.js?v=8bbb9753:19328
workLoop @ chunk-6BKLQ22S.js?v=8bbb9753:197
flushWork @ chunk-6BKLQ22S.js?v=8bbb9753:176
performWorkUntilDeadline @ chunk-6BKLQ22S.js?v=8bbb9753:384
Afficher 11 autres frames
Afficher moins
Experiences.jsx:13


   GET http://127.0.0.1:8000/videos net::ERR_FAILED 200 (OK)
dispatchXhrRequest @ axios.js?v=2dc2a8f4:1680
xhr @ axios.js?v=2dc2a8f4:1560
dispatchRequest @ axios.js?v=2dc2a8f4:2035
_request @ axios.js?v=2dc2a8f4:2240
request @ axios.js?v=2dc2a8f4:2141
Axios. @ axios.js?v=2dc2a8f4:2259
wrap @ axios.js?v=2dc2a8f4:8
fetchData @ Experiences.jsx:13
(anonyme) @ Experiences.jsx:24
commitHookEffectListMount @ chunk-6BKLQ22S.js?v=8bbb9753:16915
commitPassiveMountOnFiber @ chunk-6BKLQ22S.js?v=8bbb9753:18156
commitPassiveMountEffects_complete @ chunk-6BKLQ22S.js?v=8bbb9753:18129
commitPassiveMountEffects_begin @ chunk-6BKLQ22S.js?v=8bbb9753:18119
commitPassiveMountEffects @ chunk-6BKLQ22S.js?v=8bbb9753:18109
flushPassiveEffectsImpl @ chunk-6BKLQ22S.js?v=8bbb9753:19490
flushPassiveEffects @ chunk-6BKLQ22S.js?v=8bbb9753:19447
(anonyme) @ chunk-6BKLQ22S.js?v=8bbb9753:19328
workLoop @ chunk-6BKLQ22S.js?v=8bbb9753:197
flushWork @ chunk-6BKLQ22S.js?v=8bbb9753:176
performWorkUntilDeadline @ chunk-6BKLQ22S.js?v=8bbb9753:384
Afficher 18 autres frames
Afficher moins
localhost/:1 Access to XMLHttpRequest at 'http://127.0.0.1:8000/videos' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Experiences.jsx:20 Error fetching data: AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, request: XMLHttpRequest, …}
fetchData @ Experiences.jsx:20
await in fetchData
(anonyme) @ Experiences.jsx:24
commitHookEffectListMount @ chunk-6BKLQ22S.js?v=8bbb9753:16915
invokePassiveEffectMountInDEV @ chunk-6BKLQ22S.js?v=8bbb9753:18324
invokeEffectsInDev @ chunk-6BKLQ22S.js?v=8bbb9753:19701
commitDoubleInvokeEffectsInDEV @ chunk-6BKLQ22S.js?v=8bbb9753:19686
flushPassiveEffectsImpl @ chunk-6BKLQ22S.js?v=8bbb9753:19503
flushPassiveEffects @ chunk-6BKLQ22S.js?v=8bbb9753:19447
(anonyme) @ chunk-6BKLQ22S.js?v=8bbb9753:19328
workLoop @ chunk-6BKLQ22S.js?v=8bbb9753:197
flushWork @ chunk-6BKLQ22S.js?v=8bbb9753:176
performWorkUntilDeadline @ chunk-6BKLQ22S.js?v=8bbb9753:384
Afficher 10 autres frames
Afficher moins
Experiences.jsx:13


   GET http://127.0.0.1:8000/videos net::ERR_FAILED 200 (OK)