'Protect guest user in api calls | Laravel

Good morning. I have the following problem. In building an ecommerce with Laravel and Vue js., I want to protect the API call of the products also for the guest users. In the sense, the route "http://domain/api/product.com" at the moment could be launched from any device and retrieve the json of the products. My goal is that the user, even as a guest, can retrieve the products, but only within the site, otherwise millions of simultaneous calls could be launched from the outside if the route was accessible anywhere. Is it possible to do this with Sanctum or Passport, or are there other solutions?



Solution 1:[1]

I just checked the Windows Firewall. Bring up the Control Panel, click System and Security, Windows Defender Firewall, Allow app through Windows Firewall.

Click [Change Settings] button.

The Embarcadero Debugger Kernel is originally installed as:

C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\dbkw64_28_0.exe

Remove it, and add in

C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\dbkw64_28_0.exe

Restart Delphi. Bingo! It now works

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Jones