CORS error with expose and laravel inertia
I am using Laravel with Inertia and React for my frontend. When using expose and doing a get/delete/post request using inertia's router im getting the following error in the console: Access to XMLHttpRequest at 'http://127.0.0.1:8000/news?search=te' from origin 'https://12700.eu-1.sharedwithexpose.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
When accessing my application normally from localhost it works perfectly fine.
Also, when using expose's http url i am greeted with a blank screen and the following error:
Access to script at 'http://127.0.0.1:5173/@react-refresh' from origin 'http://12700.eu-1.sharedwithexpose.com' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.
Please or to participate in this conversation.