title: Access to XMLHttpRequest at 'https://identitytoolkit.googleapis.com/v1/accounts:/signUp? from origin 'http://localhost:8080' has been blocked
body: <blockquote>
  <p>Access to XMLHttpRequest at 'https://identitytoolkit.googleapis.com/v1/accounts:/signUp?key=AIzaSyDvZN5PKdB_b9jX-5rA-t9e3KSxJ-qtkdU' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'</p>
  </blockquote>
  <p>Am trying to Create a new user in firebase Using Axios In vue.js and am having the above errors.
  Here are my code samples.</p>
  <pre><code>onSubmit () {
      const formData = {
        email: this.email,
        age: this.age,
        password: this.password,
        confirmPassword: this.confirmPassword,
        country: this.country,
        hobbies: this.hobbyInputs.map(hobby =&gt; hobby.value),
        terms: this.terms
      }
      console.log(formData)
      axios.post('signUp?key=AIzaSyDvZN5PKdB_b9jX-5rA-t9e3KSxJ-qtkdU', {
        email: formData.email,
        password: formData.password,
        returnSecureToken: true,
      })
      .then((res) =&gt; {
          console.log(res)
      })
      .catch((error) =&gt; {
        console.log(error)
      })
    }
  </code></pre>
  <p>here is my default axios instance code.</p>
  <pre><code>import axios from 'axios'
  
  const instance = axios.create({
      baseURL: 'https://identitytoolkit.googleapis.com/v1/accounts:'
  });
  
  instance.defaults.headers.common['Access-Control-Allow-Headers'] = 'X-Requested-With, content-type';
  instance.defaults.headers.common['Access-Control-Allow-Origin'] = 'X-Requested-With, content-type';
  
  export default instance;
  </code></pre>