Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Api key showed at Page source

1 0 0


how to hide or encrypt the integrated third party API key from front end due anyone can simply view the API key from the page source.

We need to secure the API key from the website to prevent the important information leaks.




Reply 1 (1)

Shopify Partner
1033 86 282

We ran into the same concern when we were working through things. I would suggest deploying an app proxy --> This would then pass off the call securely to your middleman, who would then it turn make the third-party API call. And return the results back to the front-end user session.