From fcd5f5db4740542df8c5170722ce8f9e665a4cf7 Mon Sep 17 00:00:00 2001 From: DhanshCOSQ Date: Sun, 13 Apr 2025 10:07:51 +0000 Subject: [PATCH 1/2] feature/fitlien-add-cors (#18) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/18 Co-authored-by: DhanshCOSQ Co-committed-by: DhanshCOSQ --- functions/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index 4dce3c8..ca519f6 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -423,7 +423,7 @@ export const createCashfreeOrder = onRequest({ customer_phone: customerPhone }, order_meta: { - return_url: `http://${webHostUrl}/?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`, + return_url: `http://${webHostUrl}?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`, }, order_note: productInfo || 'Fitlien Membership' }, From dc91c123bb8db963417b97f2f71e45e6f5bb399d Mon Sep 17 00:00:00 2001 From: Benoy Bose Date: Mon, 14 Apr 2025 00:11:09 +0530 Subject: [PATCH 2/2] Updated bucket permissions --- storage.rules | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/storage.rules b/storage.rules index f08744f..fbb489a 100644 --- a/storage.rules +++ b/storage.rules @@ -1,12 +1,9 @@ rules_version = '2'; -// Craft rules based on data in your Firestore database -// allow write: if firestore.get( -// /databases/(default)/documents/users/$(request.auth.uid)).data.isAdmin; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { - allow read, write: if false; + allow read, write: if request.auth != null; } } -} +} \ No newline at end of file