Louis
Explore posts from serversCDCloudflare Developers
•Created by Louis on 7/31/2024 in #workers-help
File Upload in Workers via Formdata
Hello im currently trying to build an endpoint which lets me upload files to a R2 Bucket.
But the formdata gives me a string in result instead of an object. I used to do this before but now its not an object anymore.
Did this got changed?
Can someone give me a example code snippet?
Thanks yall!
With kind regards
Louis
1 replies
CDCloudflare Developers
•Created by Louis on 5/21/2024 in #workers-help
Communication with local system via websocket
Hello,
I need following.
I have a Worker running. This worker needs access to a rest api in an local network which isnt exposed. The plan is to write a program like a gateway which runs locally and is 24/7 connected to the worker via a websocket. When I send a "task" like "GET the json from http://exampleservice.local:8121/exampleendpoint/" the gateway queries the data and responds to the worker also via the websocket. So i would be a async call.
Would this work? Especially with the 24/7 connection to the websocket or would this spike my cloudflare bill? I heard that websockets in workers only get billed on messages sent in the websocket.
Or does anyone has an better idea? Thanks yall!
1 replies
CDCloudflare Developers
•Created by Louis on 1/13/2024 in #general-help
Webapp behind Cloudflare Access cant access Cookies
Hello I have a Webapp which is behind Access. I want to validate the CF_Authorization Cookie but when i try to get document.cookie i only get an empty string. On the same page when i open the DevTools and go to Application > Cookies > DOMAIN.TLD > I see the cookies with the current domain.
Do i have to enable anything to get this working?
52 replies
CDCloudflare Developers
•Created by Louis on 1/11/2024 in #general-help
.../cdn-cgi/access/get-identity ->{"err":"could not retrieve identity"}
As the title says. When i try to get the identity of the current gateway user i get the following response. Does anyone have an idea?
36 replies
CDCloudflare Developers
•Created by Louis on 1/9/2024 in #general-help
Is there something like Cf-Access-Authenticated-User-Email for Gateway?
Im building an app which is only accessable via Gateway. Now the question in the title so i dont have to implement some 2nd level login system
23 replies
CDCloudflare Developers
•Created by Louis on 1/9/2024 in #general-help
Cant delete Access Groups and Service Tokens
Hello,
I created a servicetoken for testing and deleted the application where i used it. Now i wanted to delete the servicetoken but it says it still gets used by a policy. The same thing with 2 access groups.
Do I need to wait so the system can clean this up automatically or something or do I need to open a support ticket or something?
Thanks!
1 replies
CDCloudflare Developers
•Created by Louis on 1/8/2024 in #general-help
Zero Trust bypass login when Gateway/Warp is enabled
Hello,
i would like to setup an application to bypass the access login when gateway is enabled.
It doesnt show me neither warp or gateway on /cdn-cgi/trace.
Even when i enable "Install CA to system certificate store" it doesnt work. I read like every forum entry about this thing and nothing helped.
Thanks yall!
10 replies
CDCloudflare Developers
•Created by Louis on 9/23/2023 in #workers-help
Best way to deploy microservices
Hello im going to build my backend on cloudflare workers as different microservices. Should i handle everything (auth, …) in each microservice or should i build a api gateway which handles auth and so on and redirects the the microservices?
Also does anyone has some examples?
THX!
1 replies