Got 403 when adding worker env
[SOLVED]
After i googling i found similar issue like in this thread (https://community.cloudflare.com/t/403-error-when-trying-to-add-a-worker-environment-variable/654279/1)
Got
API Request Failed: POST /api/v4/accounts/d3bc1986e40b2276454650196d02e3f3/workers/scripts/cf-bucket-api/versions (403)
tried login logout and the result is same.
Can anyone help? i confuse because my account make this worker but why got 403
Thank you5 Replies
seems like waf is blocking it
I'd do it through the wrangler.toml instead
Thanks @Walshy for your response
I'd do it through the wrangler.toml instead
Yes i will use wrangler.toml
for plain text, but usually for hash text i put in .dev.vars
for local and define it again in the dashboard for server, do you have any suggestion for hash text?for secrets you should do
wrangler secrets put
Yes it works!
So the solution is using
wrangler secrets put
if via dashboard (https://developers.cloudflare.com/workers/configuration/secrets/#via-the-dashboard) got 403
Thanks j
Thanks @Walshy for your help 🙏secrets put is the recommended way regardless
but yes 🙂