firebase-hosting

My website is not showing after deploy in firebase how to solve this

情到浓时终转凉″ 提交于 2021-02-05 04:55:03
问题 I have complete all process Firebase Login Firebase init Firebase deploy now finally i got a link https://testing-37553.firebaseapp.com/ but my website not showing so what should i have to do. 回答1: What you are seeing is the default index.html page that is created by the CLI when you create a new project. You should adapt this index.html page as you whish (i.e. by modifying the HTML/CSS/JS code of this page, in your local project directory) and re-deploy the project with firebase deploy or

Whats the difference between firebase web app and firebase hosting

百般思念 提交于 2021-01-29 09:36:17
问题 what is the difference between the firebase web app and firebase hosting? As far as i can tell the web app is used for an app thats actually just a browser, and the firebase hosting is used just for websites. 回答1: Firebase for Web-Apps is a JavaScript library and Firebase Hosting is a web-hosting platform. The JS can be loaded from just any web-server, but on Firebase Hosting it is better integrated with other the components in the Firebase ecosystem - and it can be deployed with the Firebase

Firebase hosting cookie behaviours

淺唱寂寞╮ 提交于 2021-01-29 05:41:22
问题 I have couple of questions related to firebase __session cookie and csurf cookies. From this article Manage Cache. Got to know, That cookies are generally stripped from incoming requests. Only the specially-named __session cookie is permitted to pass through to the execution of your app. My question is, when in the cookies there is no __session object and i enter email and password and click submit which triggers the route /sessionLogin, it reads all the cookie objects like below. req.cookies

Firebase: URL Rewrites/Redirect with URL Variables

别等时光非礼了梦想. 提交于 2021-01-28 07:05:09
问题 I want to access example.com/folder/value1/value2/ on a Firebase hosted website and load content from example.com/folder/index.html?var1=value1&var2=value2 while keeping the new URLs (not redirecting to the .html page with variables in it). I have tried the following but it returns a 404 error: rewrites": [ { "source": "/folder/:value1*/:value2*/", "destination": "/folder/index.html?var1=:value1&var2=:value2" } Any ideas if this is possible in Firebase? Similar to htaccess rewrites? 回答1:

Firebase hosting custom headers not working

不打扰是莪最后的温柔 提交于 2021-01-27 07:31:19
问题 I deploy a static site on firebase hosting with some header configuarations. But I some of my headers doesn't appear after the site deployed. I tried change the value of Cache-Control header and it works. But X-Frame-Options , Content-Security-Policy , X-Content-Type-Options doesn't. firebase.json: { "hosting": { "public": "public", "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], "headers": [ { "source": "**/*.@(html)", "headers": [ { "key": "Cache-Control", "value": "max-age=3600

Firebase hosting custom headers not working

我怕爱的太早我们不能终老 提交于 2021-01-27 07:30:55
问题 I deploy a static site on firebase hosting with some header configuarations. But I some of my headers doesn't appear after the site deployed. I tried change the value of Cache-Control header and it works. But X-Frame-Options , Content-Security-Policy , X-Content-Type-Options doesn't. firebase.json: { "hosting": { "public": "public", "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], "headers": [ { "source": "**/*.@(html)", "headers": [ { "key": "Cache-Control", "value": "max-age=3600

Firebase Admin SDK apply action code for email verification

戏子无情 提交于 2021-01-27 05:48:32
问题 The Firebase Customize the Email Action Handler guide gives an example of verifying a user's email address on a custom URL to a site hosted through Firebase. However, I want the custom URL to point to a Firebase cloud function endpoint URL and use admin SDK to verify the oob code instead. But there is no such function as applyActionCode for the admin.auth() . Is verifying email through a hosted site using javascript the only way to go? I don't really want to expose the code to the browser.

Firebase functions return 404

我的未来我决定 提交于 2021-01-07 03:13:33
问题 I am trying to set up a custom domain for firebase functions. Custom domain already verified and works fine. My firebase functions run under us-central1 : here is my code for login function: const functions = require("firebase-functions"); const express = require(`express`); const cors = require(`cors`); const admin = require(`firebase-admin`); admin.initializeApp(); const firestore = admin.firestore(); const appLogin = express(); appLogin.use(cors({origin:true})); appLogin.post("/", async

Firebase functions return 404

可紊 提交于 2021-01-07 03:13:20
问题 I am trying to set up a custom domain for firebase functions. Custom domain already verified and works fine. My firebase functions run under us-central1 : here is my code for login function: const functions = require("firebase-functions"); const express = require(`express`); const cors = require(`cors`); const admin = require(`firebase-admin`); admin.initializeApp(); const firestore = admin.firestore(); const appLogin = express(); appLogin.use(cors({origin:true})); appLogin.post("/", async

Your password may be compromised Chrome popup

房东的猫 提交于 2020-12-26 11:21:41
问题 I just launched my website on firebase hosting. Design and login forms were created with webflow. Website built with nuxt js. For some reason, every time i try to login with login form, i get a popup from Chrome: Your password may be compromised - You just entered your password on a deceptive site.... What exactly is coursing this error ? I have tried changing my password, i have tried simplifying the form by removing tags like name , id, data-name which is normally added to it via webflow. I