It's not a common question, but I wonder if any tricks or upcoming standards exist.
Belows are a flow and what I want to implement.
- Web application loaded from server-side
- Client-side script loads some secure contents (not from #1) that need to be protected from web application provider. It could be shown to a user visually.
- Web application provider knows where are the secure contents (in Dom path) and possibly may try to catch it by putting a script
- However the secure contents shouldn't be hijacked from servers (even from the same origin) or from external application (even from developer tools if possible)
EDIT:
For better understanding, it's for use case where web application doesn't hold user data in their DB but loads the data from somewhere else. In case, I need to protect the data from web application, which is uncommon in regular web application.