A
A
Alexey Reut2021-06-18 13:36:45
Nginx
Alexey Reut, 2021-06-18 13:36:45

Laravel + Nginx, nuxt.js How to set up?

I am developing a project on Laravel + nuxt. Laravel separately as an api server. And so a problem that initially I developed locally. Ran php artisan serve and npm run dev and had no issues. But when I decided to run Laravel on nginx, cors. I have authorization on laravel sanctum. Through trial and error, I found that the problem is in the nginx settings. How to set up Nginx so that it functions properly with nuxt?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Lyskov, 2021-06-18
@Vlatqa

add_header "Access-Control-Allow-Origin" "*";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question