Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ostepan's avatar

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.

0 likes
1 reply

Please or to participate in this conversation.