A
A
Alex Walsh2020-12-09 02:20:38
RESTful API
Alex Walsh, 2020-12-09 02:20:38

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

2 answer(s)
K
Konstantin B., 2020-12-09
@Kostik_1993

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
Ilya Chubarov, 2020-12-09
@agoalofalife

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 question

Ask a Question

731 491 924 answers to any question