firebase-hosting

How to get external data without CORS headers with Firebase hosted webapp?

烈酒焚心 提交于 2019-12-01 20:52:39
I have my Ionic2 app hosted on Firebase. What I need is to get external data from an API service where No 'Access-Control-Allow-Origin' header is present on the requested resource I can work around it locally by using proxies in ionic.config.json file: "proxies": [ { "path":"/api", "proxyUrl": "https://api.somwhere.com/" } ] But I have no idea how to deal with this after deploying my app to Firebase. Is it somehow possible? The Firebase docs have an example of setting the Access-Control-Allow-Origin in your firebase.json to allow cross-origin requests for font files. You could adjust that like

Can I use a wildcard subdomain with my custom domain?

瘦欲@ 提交于 2019-12-01 17:49:37
问题 Just checking to see if anyone knows if this is possible yet. I would like to use a wildcard subdomain with firebase hosting and use functions to parse the subdomain. 回答1: No, Firebase Hosting does not presently support wildcard subdomains. It's something that we'd like to do in the future, but there are no timelines or concrete plans to share at this time. 来源: https://stackoverflow.com/questions/54579293/can-i-use-a-wildcard-subdomain-with-my-custom-domain

“An unexpected error has occurred” after firebase deploy

自闭症网瘾萝莉.ら 提交于 2019-12-01 17:27:25
When I am hosting my web page through firebase hosting then after writing command firebase deploy I got the following error: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\amarg\Desktop\amar>firebase init ######## #### ######## ######## ######## ### ###### ######## ## ## ## ## ## ## ## ## ## ## ## ###### ## ######## ###### ######## ######### ###### ###### ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ######## ######## ## ## ###### ######## You're about to initialize a Firebase project in this directory: C:\Users\amarg\Desktop\amar Before

“An unexpected error has occurred” after firebase deploy

余生长醉 提交于 2019-12-01 16:42:39
问题 When I am hosting my web page through firebase hosting then after writing command firebase deploy I got the following error: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\amarg\Desktop\amar>firebase init ######## #### ######## ######## ######## ### ###### ######## ## ## ## ## ## ## ## ## ## ## ## ###### ## ######## ###### ######## ######### ###### ###### ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ######## ######## ## ## ###### #######

Can I access w3c style logs when using firebase hosting

元气小坏坏 提交于 2019-12-01 16:02:28
I am using firebase hosting and would like access to w3c style internet access logs for the traffic going to my domain. Is this possible? Thanks. No. Disclosure: I work for Firebase. Firebase's Hosting is most often used for single-page applications that are built on top of Firebase's realtime database. In such applications, the number of times a static resource is retrieved is not a good indicator of the application's usage. Instead of that, most developers rely on the Firebase dashboard that shows the database usage over time, including the number of concurrent connections, data transfer and

Can I add additional file to my Firebase hosted static website, or must I deploy the entire site every time?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 15:59:31
问题 We plan to host a fairly large set of static files with Firebase Hosting. Is it possible to deploy only new files to Firebase Hosting, without having the entire site available? We essentially want to do an "update" deploy, not a "full" deploy. We want to add files. The context: on every Travis build, we generate new docs, and want to add those docs to our site. We don't have the entire site available at that point, only the newly generated files. Thanks! 回答1: At the moment running firebase

Can I access w3c style logs when using firebase hosting

穿精又带淫゛_ 提交于 2019-12-01 15:39:04
问题 I am using firebase hosting and would like access to w3c style internet access logs for the traffic going to my domain. Is this possible? Thanks. 回答1: No. Disclosure: I work for Firebase. Firebase's Hosting is most often used for single-page applications that are built on top of Firebase's realtime database. In such applications, the number of times a static resource is retrieved is not a good indicator of the application's usage. Instead of that, most developers rely on the Firebase

How can I do IP whitelisting for a static site hosted in Firebase? / Is there a WAF for Firebase hosting?

无人久伴 提交于 2019-12-01 12:52:10
问题 I have a static website hosted in Firebase. I can attach a custom domain to it fine. I would like to restrict access to my site to a certain range of IPs. I am aware that in GCP Google Cloud Armor can do this. But Cloud Armor only works with a Load Balancer and the load balancer routes traffic only to GCP VMs.(not to a Firebase hosted site) In AWS, there is a Web Application Firewall that lets you do IP Filtering. I see GCP has provided links to 3rd Party partners here: https://cloud.google

firebase-tools error: EACCES: permission denied

给你一囗甜甜゛ 提交于 2019-12-01 12:25:03
I am trying to deploy Firebase hosting of my web app. At the command line, when I type firebase deploy , I get the following error. Note: firebase deploy is just one example. The same error occurs for all firebase commands. (e.g., firebase --help , firebase -v , firebase login , firebase logout , etc.) Error /usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:53 throw err; ^ Error: EACCES: permission denied, open '/Users/mowzer/.config/configstore/update-notifier-firebase-tools.json' You don't have access to this file. at Error (native) at Object.fs.openSync (fs.js:549

firebase hosting iframe error with X-Frame-Options

杀马特。学长 韩版系。学妹 提交于 2019-12-01 12:13:14
问题 I need to use couple of iframe for a page hosted with firebase, but its giving me X-Frame-Options error, one of the iframe is for gallery hosted on picasa, and anohter ifrmae for contact form(because i couldnt sent email via firebase :() here is error Refused to display 'https://get.google.com/albumarchive/pwa/11111/album/1111?source=pwa#slideshow/1111' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. jquery.min.js:2 Uncaught DOMException: Failed to read the 'contentDocument'