Example usage of cors-anywhere & Firebase Functions & TypeScript & ES6 modules.
Check out functions/src/index.ts
- Install dependencies
npm install
cd functions && npm install
-
Edit project name in
.firebaserc
-
Deploy the function
npm run deploy
- Now you can access "cors-anywhere" when you go
https://{FIREBASE_REGION}-{PROJECT_NAME}.cloudfunctions.net/cors