Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ynoth25's avatar

InertiaJs Deployment

I noticed when I deployed my app on live server: It shows the data-page inside a div and it contains all the data I declared inside the HandleInertiaRequest Middleware. Do you guys think how I can hide it? or encrypt it if I need to?

0 likes
1 reply
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Thats how inertia works. You need to ensure you only send data that the users are allowed to see. Encrypting it wont help as you will be decrypting it clientside

Read the first yellow box here: https://inertiajs.com/responses

Please or to participate in this conversation.