Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Workers for Platforms looks pretty neat, and I hadn’t seen it before. I don’t think it’s targeted at the low-effort CGI-like little bit of script on an otherwise mostly static site market, though. But maybe someone could build that on top of it?

Heck, one could probably even build middleware to deploy regular workers for this type of use, where the owner of the worker has no Cloudflare credentials at all and only interacts with the middleware. (Other than the origin and cache API issues.)



Right, that's exactly the idea. You could build your own CGI-like hosting platform using WfP to run untrusted JavaScript.

To be clear the two caveats don't apply to WfP. The cache API is disabled there. The origin thing can be solved by installing an "outbound worker", which intercepts all outbound requests from the untrusted workers and so can block unwanted requests to origin.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: