Answer the question
In order to leave comments, you need to log in
How to secure laravel + nuxt.js API?
Good day.
And so straight to the point, there is a backend on laravel and an application on nuxt.js, how can I allow access to the api only from the nuxt application?
UPD: We need to protect things like fetching products, leaving a review (we have the ability to leave a review without authentication), sending a request for a shipping calculation, that is, to authorize requests from the nuxt.js of the application and not the user
Answer the question
In order to leave comments, you need to log in
And what's the point of protecting if it is also available without registration in your nuxt application?
All you can do is encrypt requests in general and decrypt using keys
Or alternatively use a proxy in nuxt
I didn’t fully understand the task, but you can issue a token to the client and it will have authorization rights.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question