Are you running postman through their web url or installed postman in your local system?
Oct 14, 2024
4
Level 1
private API endpoint ?
Hey everyone, I've just set up an API in Laravel 11 and created my first endpoint:
// In routes/api.php Route::get('/', [ReportsController::class, 'index']);
I can access it without any issues via my localhost (e.g., http://127.0.0.1:8000/), and it returns the expected result. However, when I try accessing it using Postman, I still get the same result. I was expecting a 419 status code or something similar to prevent external access to my API.
Is there a way to make this endpoint private so it can't be accessed outside of my application?
Please or to participate in this conversation.