jiangok
jiangok
CDCloudflare Developers
Created by jiangok on 1/16/2024 in #pages-help
use microsoft graph API auth in CF page
I try to use MS graph API in my remix+CF page project but the sample code https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code asks installing @azure/msal-node which does not work (as expected). How can I make MS auth work? Thanks for any hints.
1 replies
CDCloudflare Developers
Created by jiangok on 1/2/2024 in #pages-help
google-api-javascript-client throw "Uncaught ReferenceError: window is not defined" in Remix CF page
I am trying to use google-api-javascript-client (recommended by google) in my Remix CF page project. Sample code is https://github.com/google/google-api-javascript-client/blob/master/docs/start.md#option-2-use-gapiclientrequest. However, it failed: ✘ [ERROR] service core:user:myproject Uncaught ReferenceError: window is not defined at null.<anonymous> (functionsWorker-0.15113220025986496.js:63854:19) at null.<anonymous> (functionsWorker-0.15113220025986496.js:64327:4) ✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above. Any idea? Appreciate very much!
3 replies
CDCloudflare Developers
Created by jiangok on 1/1/2024 in #pages-help
ebay notification is blocked by cloudflare website protection
I am onboarding email notification (https://developer.ebay.com/marketplace-account-deletion#optingOut) for my remix page application. ebay need to call my url to send a challenge code and get back a hash to confirm my application is working. Unfortunately, cloudflare blocks ebay call by asking an email. I have granted everyone hoping it can solve the problem but it didn't. Service auth seems not to work either for eBay either. I saw some unconfirmed discussion here: https://community.cloudflare.com/t/no-policy-set-but-email-otp-is-still-always-required/535473. any help is highly appreciated!
2 replies
CDCloudflare Developers
Created by jiangok on 11/25/2023 in #pages-help
dev tool does not show source code
No description
1 replies
CDCloudflare Developers
Created by jiangok on 8/17/2023 in #pages-help
a cloudflare tunnel to connect to a local website
I try to create a cloudflare tunnel to connect to a flutter website running (using "flutter run" command) on my local MAC. I have done this successfully for connecting to a web service running locally. But the tunnel for the flutter website does not work. https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/ says "Cloudflare Tunnel can connect HTTP web servers, SSH servers, remote desktops, and other protocols safely to Cloudflare.". Does it mean tunnel does not work for flutter websites running via "flutter run"? Thanks very much for any clue.
5 replies
CDCloudflare Developers
Created by jiangok on 8/6/2023 in #pages-help
How to pass secrets to Flutter web hosted by Cloudflare pages?
I have a flutter web which need to access supabase using the access key. How can I pass this key to the flutter web? My research shows two solutions: 1. use base64 (https://stackoverflow.com/questions/67964110/how-to-access-secrets-when-using-flutter-web-with-github-actions). This solution may not apply to my use case as I am not using github action to build my flutter web. Instead, I use peanut (https://hrishikeshpathak.com/blog/flutter-web-hosting-cloudflare/). Plus, base64 is not secure. I am not sure if the js compiled from flutter can still expose the secrets after building with secrets whether plain text or decoded from base64 encoding. 2. use page functions which seems to be more secure. However, I did not find doc for using page functions in flutter web app. My questions: * which way is the recommended? * if 2, could you share any pointers how to use page functions in flutter web? Thanks very much!
1 replies
CDCloudflare Developers
Created by jiangok on 7/31/2023 in #pages-help
Cannot purchase a plan
1 replies