Question:
How can I implement tokenization or encryption for an iframe URL in Wix Studio to protect sensitive parameters from being easily accessible by users?
Product:
Wix Studio Editor.
What are you trying to achieve:
I want to embed an iframe on my Wix site that includes sensitive URL parameters. My goal is to ensure that these parameters are not directly visible in the browser’s network tab. Users can inspect the site and see the full iframe URL with parameters, so I would like to use tokenization, where the client sees only a token instead of the actual parameters. Additionally, I want the token to be short-lived to enhance security.
What have you already tried:
I have explored the Wix Velo documentation and looked at forums discussing iframe security. I’ve also checked out some articles on tokenization and JWT (JSON Web Tokens) but am unsure how to specifically implement this in Wix Studio.
Additional information:
I would appreciate examples or guidance on how to set up a backend function to generate and verify tokens in Wix Studio. Additionally, any tips on securely fetching these tokens in the frontend and embedding the iframe with the tokenized URL would be helpful.