Have you tried making your own middleware for handling CORS? You can follow this tutorial of how to do it, https://medium.com/@abdoumjr/laravel-cors-middleware-58d08048cc74
Nov 17, 2020
1
Level 1
CORS problem Laravel API on POST request
I have website like domain.cz where i have an nuxt static app. Im posting via axios POST request to admin.domain.cz where i have in api routes define post request but, when i try to make a POST to admin.domain.cz/api i will get a CORS problém header not set. What i need to do with laravel app to solve this problem. I try enything, install package for cors add manualy to api routes php header and nothing help. I have Laravel 8.
Thanks for any rersponse.
Please or to participate in this conversation.