Can you describe a bit more what this solution entails? Generating token upon login and sending to c
Can you describe a bit more what this solution entails? Generating token upon login and sending to client browser, then verifying when required? I found this which might help me https://github.com/tsndr/cloudflare-worker-jwt
14 Replies
large chunks of that seem to be taken up by software licenses lol
"GNU GENERAL PUBLIC LICENSE" is mentioned 1,088 times
it is cool they offer that though, smart 😄
goodbye licenses
😱
just curious is there anyone knows why preview builds on other branches not working?
For example I pushed changes to some other branches other than "prod" and hoping it will take effect to build a preview like Pages does.
for context, "prod" branch is not the default branch
Can you use a
*.pages.dev
domain with workers when using static assets?i don't think so. the defaults are not changeable
when attempting to create a worker using astro framework it proposes older version. is there way to configure version of the astro used for the worker?
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
The create-astro might be older but I expect it'll still init a new version of Astro?
Might have to try and see.
you are right - while the label in cli was 4. something teh actual version installed is 5. something
Is it possible to call from a worker exposed on a subdomain another subdomain using fetch? I have the following use-case: worker on a.domain.com calls a service on b.domain.com, domain is managed by cloudflare. Currentlty I receive 521 errors and I don't know how to figure out this, since it's working locally
not on the same underlying zone/domain, use service bindings
Cloudflare Docs
Service bindings - Runtime APIs · Cloudflare Workers docs
Facilitate Worker-to-Worker communication.
Only a.domain.com is running on cloudflare in my case
b.domain.com is on another provider
Just DNS binding is managed by Cloudflare
ah opps the worker to worker case wouldn't be a 521 anyway.
so your worker is fetching another subdomain? If the other subdomain is unproxied, it's worth noting the worker fetch request goes through the full cdn pipeline as if it was proxied. A Common issue is your SSL/TLS Mode (under SSL/TLS -> Overview) is Flexible, so the Worker's trying to connect to your origin over http/80 and your origin only supports https/443, need full or full (strict). Otherwise 521 is a generic connection refused (could be firewall/etc). I assume it works fine not through the worker