Questions tagged [cloudflare-apps]

Questions regarding developing on the Cloudflare Apps Platform

Questions regarding developing on the Cloudflare Apps Platform.

36 questions
7
votes
1 answer

How do I query in MongoDB with Cloudflare workers?

I am trying to query mongodb simple findOne in using mongodb. Cloudflare worker is giving 10ms CPU time but during preview/publish throwing error I have tried installing these npm modules npm i mongodb, mongodb-core, dgram, fs var MongoClient =…
5
votes
2 answers

Can't connect cloudflare warp vpn in linux

I installed and set up cloudflare warp in linux as cloudflare document. After "start warp-svc.service" and do warp-cli connect successfully, I check warp status in https://www.cloudflare.com/cdn-cgi/trace/: warp=off And I can't access to the…
amg
  • 85
  • 1
  • 4
4
votes
1 answer

Is an App that only use localStorage has to be GDPR Compliance?

So, I created an app that can be installed on websites via CloudFlare Apps. This is my app. This app only stores 1 data (in the form of datetime) on localStorage which is used to remember users that have clicked on the "Got it" button. My questions…
Howard Lie
  • 108
  • 2
  • 12
1
vote
1 answer

How to import Cloudflare KV Namespace Variable?

I'm using KV namespace defined in cargo.toml by adding to it the lines kv_namespaces = [ { binding = "SITE_DATA", id = "" } ] When I try to import the SITE_DATA variable in my Worker script as shown, and I run wrangler publish or…
1
vote
1 answer

Is there a way to allow scripts from Cloudflare on new Google sites?

I created a site using the new Google sites (not Classic Sites), set up site proxying through Cloudflare, and enabled the Email Address Obfuscation feature in Cloudflare. Then I added a button that performs a simple action mailto:info@example.com…
1
vote
0 answers

Why is my Cloudflare AppService failing to Oauth?

I’m having an issue completing the OAuth process for our Cloudflare app that's in development. I've been following the documentation here https://www.cloudflare.com/apps/developer/docs/webhooks/managing-accounts and I'm stuck in #10 in the list,…
PrimalYeti
  • 99
  • 6
1
vote
0 answers

How do I set install.private in Cloudflare App Hooks?

I'm trying to store and retrieve private data within my hooks by setting install.private as described here but subsequent hook requests do not include the install.private property. Using the below App install.json and Worker index.js, I'm testing…
derek
  • 331
  • 1
  • 4
1
vote
1 answer

Is it possible to test a Cloudflare App with Worker before submitting?

After clicking “Add app” on the /apps/developer/app-creator page if I click “Save draft” I am given a message “You are not authorized to create apps with workers.” Is there a way I can create an App that contains a worker for testing on my own…
kaicurry
  • 199
  • 7
1
vote
1 answer

cannot react to close tab event with cloudfare app

I am using the app creator and trying to react to close tab window event using the code below. I then preview the app in a separate window, but when I close the tab I don't get the confirmation pop up. When I inject this code in the js console it…
1
vote
1 answer

Why my Cloudflare Apps web hooks not working?

I keep getting the following error message when implementing web hooks with cloudflare. There was an error communicating with Trebble. The dev console says: raven.js:1 Hook failure 1. {type: "system", message: "unexpected end of JSON input",…
John
  • 11
  • 1
0
votes
0 answers

Serving content from subfolder in R2 bucket on a subdomain

I have an r2 bucket with content in subfolders like: MY_BUCKET/subfolder1/index.html MY_BUCKET/subfolder2/index.html MY_BUCKET/subfolder3/index.html How I can configure my cloudflare site to serve content from these subfolders on subdomain of my…
tzador
  • 2,535
  • 4
  • 31
  • 37
0
votes
1 answer

cloudflare_worker_script multiple files

Using CloudFlare web dashboard it's possible to split your code into multiple files using ES module syntax. It works out of the box. Is it possible to create such configuration using CF Terraform provider and cloudflare_worker_script without JS…
0
votes
0 answers

How can I connect my Cloudflare Pages with my Woocommerce website?

I have this problem, more specifically I have a site set up on Woocommerce. Recently, I managed to generate a file with all the pages and deployed them on Cloudflare Pages. Is there any way to make dynamic elements such as the login/registration…
0
votes
0 answers

Getting error while integrating Socket io and cloudflare

Server-side code: const express = require("express"); const app = express(); const http = require("http"); const { Server } = require("socket.io"); const cors = require("cors"); app.use(cors()); const server = http.createServer(app); const io =…
0
votes
1 answer

Disable authentication for an app cloudflare

I have a server and I make a tunnel with cloudflare to be able to access from outside creating an application in Cloudflare Zero Strust and I am trying to disable all the policies so that it allows me to access the application without…
chdzma
  • 191
  • 11
1
2 3