firebase-hosting

Firebase cloud functions/ hosting ssl pinning

混江龙づ霸主 提交于 2021-02-20 04:24:45
问题 My payment gateway requires ssl certificate pinning for their payment gateway endpoint on my side. Does Firebase support ssl pinning for cloud functions/hosting? I can't find this information in the official documentation or anywhere else on the net. Details published in the bank's technical requirements form: Response URL and Port Number Specify the Response URL and Port Number for us to send you payment notification. SSL Certificate: (To establish secure connection with your Response URL.)

How to implement this .htaccess in firebase?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-19 07:32:27
问题 I have this .htaccess for a PWA Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.html [QSA,L] I want to migrate the app to firebase, basically what it does is let's say I shared this link example.com/pwa/giftLink He gets redirected to PWA example.com/pwa And the PWA redirects him to giftLink . I don't want to do it via code, I prefer doing it via firebase.json 回答1: In Firebase Hosting rewrites, the equivalent would be: "hosting": { // ... // Add the

Stop saving in cache memory Flutter web Firebase hosting

江枫思渺然 提交于 2021-02-19 02:47:13
问题 I designed a web app using the Flutter web. I hosted it with Firebase host. But It's not showing changes of my code after deploying to firebase. It's still showing my older version of web app. But I can overcome this problem by clearing cache memory of browser or ctrl+refresh . But I don't want to do this every time I deploy to firebase. How to stop saving my web app in cache memory? hosted link: https://frcovid19dashboard.web.app 回答1: Append a version number to your main.dart file. Every

Error from Firebase Project URL: Adding www causes “Your connection is not private”

霸气de小男生 提交于 2021-02-16 20:05:13
问题 I have a firebase project that loads properly unless I type the url to my project with www. in front. This works : https://myproject.firebaseapp.com This returns an error : https://www.myproject.firebaseapp.com Your connection is not private Attackers might be trying to steal your information from www.myproject.firebaseapp.com (for example, passwords, messages, or credit cards). Learn more NET::ERR_CERT_COMMON_NAME_INVALID Attempt to resolve I followed the "Learn More" in the error above and

Error from Firebase Project URL: Adding www causes “Your connection is not private”

╄→гoц情女王★ 提交于 2021-02-16 20:03:51
问题 I have a firebase project that loads properly unless I type the url to my project with www. in front. This works : https://myproject.firebaseapp.com This returns an error : https://www.myproject.firebaseapp.com Your connection is not private Attackers might be trying to steal your information from www.myproject.firebaseapp.com (for example, passwords, messages, or credit cards). Learn more NET::ERR_CERT_COMMON_NAME_INVALID Attempt to resolve I followed the "Learn More" in the error above and

Firebase hosting restricted access

狂风中的少年 提交于 2021-02-11 13:46:31
问题 Can we restrict access to website with firebase hosting to prevent search engine indexing? This would be helpful for dev/staging environments. Something like AWS Amplify restricting access https://docs.aws.amazon.com/amplify/latest/userguide/access-control.html 回答1: You can control whether a crawler indexes your site with the usual robots.txt instructions. Note that this file is not specific to Firebase Hosting, and commonly used to control if/what parts of a site bots crawl. But aside from

What IAM roles are needed for deploying to Firebase Hosting?

こ雲淡風輕ζ 提交于 2021-02-10 18:27:24
问题 I am trying to give permissions to a third party to make deployments to Firebase Hosting on a project I have set up. I explored the IAM permissions available in the GCP console, and the only half-related role seems to be the Firebase Rules System , however that didn't allow the user to deploy to hosting. While Project Editor would probably work, I don't want to give them that much authority, as they could launch other Firebase products at my expense. What IAM roles should I add to allow a

What IAM roles are needed for deploying to Firebase Hosting?

陌路散爱 提交于 2021-02-10 18:19:38
问题 I am trying to give permissions to a third party to make deployments to Firebase Hosting on a project I have set up. I explored the IAM permissions available in the GCP console, and the only half-related role seems to be the Firebase Rules System , however that didn't allow the user to deploy to hosting. While Project Editor would probably work, I don't want to give them that much authority, as they could launch other Firebase products at my expense. What IAM roles should I add to allow a

Is there a way to remove the .html extensions in Hosting Firebase?

橙三吉。 提交于 2021-02-08 09:59:11
问题 I found in the firebase documents that you could hide the .html extensions of my site by creating a "firebase.json" file. I effectively remove the extensions but when I want to enter my other pages I cannot. I always see the main page. I tried previously with .htaccess but it didn't work out. Now I found this firebase resource but any extension directs me to the main page. I put that in my file "firebase.json" "hosting": { "cleanUrls": true, "trailingSlash": false } 回答1: You can set up routes

Is there a way to remove the .html extensions in Hosting Firebase?

梦想与她 提交于 2021-02-08 09:58:04
问题 I found in the firebase documents that you could hide the .html extensions of my site by creating a "firebase.json" file. I effectively remove the extensions but when I want to enter my other pages I cannot. I always see the main page. I tried previously with .htaccess but it didn't work out. Now I found this firebase resource but any extension directs me to the main page. I put that in my file "firebase.json" "hosting": { "cleanUrls": true, "trailingSlash": false } 回答1: You can set up routes