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 you
No description
5 Replies
Walshy
Walshy7mo ago
seems like waf is blocking it I'd do it through the wrangler.toml instead
revi270896
revi270896OP7mo ago
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?
Walshy
Walshy7mo ago
for secrets you should do wrangler secrets put
revi270896
revi270896OP7mo ago
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 🙏
Walshy
Walshy7mo ago
secrets put is the recommended way regardless but yes 🙂
Want results from more Discord servers?
Add your server