NuxtN
Nuxt3y ago
26 replies
Thijs

How to handle private keys.

Hi,

I have a question. I want to do a POST request to my server with my API key from my .env.
I added the key to my runtimeconfig (see screenshot).
I uploaded the website to Netlify, set there my env vars, and tried to POST my function. But I get a 403 because my key isn't pushed? What am I missing?

When I paste the key as a string in my const client = .... everything works fine.
image.png
image.png
Was this page helpful?