lmj
lmj
CDCloudflare Developers
Created by lmj on 11/28/2023 in #workers-help
Workers tested fine in playground but hits 500 error externally
Hi guys, My workers tested fine in the playground editor but hits 500 error when I tried to access it externally via Postman. Wondering if I'm missing anything here?
1 replies
CDCloudflare Developers
Created by lmj on 8/22/2023 in #pages-help
Adding CORs?
Hey everyone, I'm working with AstroJS to create a website on Cloudflare Pages that includes an API endpoint. I want to make sure that only a specific button on my site can call this API. Is there a way to restrict access to this endpoint by using CORS? I want to set it up so that the API can only be called by this button and nowhere else. Can I do this within the endpoint's code?
1 replies