I think that’s a really good point.
Especially when you have technologies like Firebase or something like that where you might be interacting with the database essentially from your front end code.
That can end up leaving a big gap between what you are visually exposing and what you’re actually exposing.
This is certainly a protection that we’ve lost as we moved away from server rendered architecture, where no APIs are exposed and only explicitly needed data is sent to the client. Not passing judgment, but there is a higher risk profile in multiple ways for a SPA.