Comments (6)
Hey kofifus, try adding the following snippet as described in the official documentation website:
https://firebase.google.com/docs/web/setup#add_firebase_to_your_app
// TODO: Replace with your project's customized code snippet
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: '<your-api-key>',
authDomain: '<your-auth-domain>',
databaseURL: '<your-database-url>',
storageBucket: '<your-storage-bucket>'
};
firebase.initializeApp(config);
</script>
from quickstart-js.
ok thx :)
I did and I now get in the console:
Uncaught Error: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console. firebase.js:71
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null'). iframe.js:188
any help?
from quickstart-js.
Make sure you serve your files from a web server:
- Install the firebase CLI:
npm install -g firebase-tools
- Serve your firebase project:
firebase serve
- Open http://localhost:5000
PS: these instructions are in the README file that's in each folders of the samples ;)
from quickstart-js.
ok got it ... does this mean I now must have my firebase using files served from an http server ? in the old FB version I could simply load a local file to the browser ?
from quickstart-js.
Yes that's right, the new auth implementation doesn't allow file://
schemes to be whitelisted at this point so you need to access your app from an http://
URI.
from quickstart-js.
I think you should add this to the README.
from quickstart-js.
Related Issues (20)
- Enter Custom Auth Code
- wrong README.md
- Problems integrating Firebase service woker with existing service-worker of react PWA HOT 1
- [Firebase Cloud Messaging Quickstart] Should be updated to use Firebase Cloud Messaging API (V1)
- Messaging: We are unable to register the default service worker. HOT 2
- Show two messages HOT 1
- Auth in chrome extension is not working
- The "Send Code" button for MFA is never enabled even after entering valid phone number and successful recaptcha HOT 1
- FCM HTTP V1 API
- Cors policy no longer allows calling cloud functions from browser. HOT 6
- Unable to start firebase project for existing instruction
- The GitHub authentication component is used on the Google Authentication page
- Server Key
- messaging quickstart does not work HOT 3
- not working the firebase config HOT 1
- Incorrect script in firestore quickstart readme
- Why canβt I get currentUser on my iPhone? HOT 1
- Fetch data from mobile is 35 times slower than on PC
- Firebase authentication with user's google account from V3 chrome extension
- IHeyReally.com
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickstart-js.