lundi 10 février 2020

Api only accessible from trusted sites not by any browser, postman & etc

It is possible to make API only response to specific request?

Example I have API on http://api.example.test

And I don't want anybody get access to it by simply using web browser and put that url, or using postman to perform any POST request, or any other thing.

I want the api only can be access by specific site example http://example.test

This will work like this:

http://example.test is like admin panel that control all other thing to that api

http://api.example.test just a api database to store all information. No front-end on this site.

The api use Laravel, and has CORS apply to allow only for whitelist domain. But this doesn't prevent from any direct request or postman & etc.

If there's any source where can I read about this, or any explanation. I'm really appreciate it

Thank you



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2vkXCgD
via IFTTT

Aucun commentaire:

Enregistrer un commentaire