How do I fetch origin after enabling `global_fetch_strictly_public`

I would like to fetch origin after enabling the global_fetch_strictly_public flag. For example, for all fetch() call use the public behaviour but when the request is from trusted source, it can fetch the origin.
2 Replies
Walshy
Walshy5mo ago
You can still use it as before, as long as no a worker is on the path Or better yet, use origin bindings
[[unsafe.bindings]]
type = "origin"
name = "ORIGIN"
[[unsafe.bindings]]
type = "origin"
name = "ORIGIN"
And then env.ORIGIN.fetch
Deo Kumar
Deo KumarOP5mo ago
Thanks 🙏

Did you find this page helpful?