title: CORS request did not succeed - react
body: <p>I make this API request , using axios in ReactJS</p>
  
  <pre><code> axios.post(`${API_URL}/valida_proximo`, {
    id: images.map(image =&gt; image.id)
    },
    getAxiosConfig())
  // this.setState({ images, loadingAtribuiImagens: false})
  }
  </code></pre>
  
  <p>It works really well in Google Chrome, but on Firefox I receive an error:</p>
  
  <p>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <a href="http://localhost:5000/valida_proximo" rel="nofollow noreferrer">http://localhost:5000/valida_proximo</a>. (Reason: CORS request did not succeed).[Learn More] </p>
  
  <p>What can I do?</p>
  
  <p>This is my API</p>
  
  <pre><code>  @blueprint.route('', methods=['POST', ])
    @jwt_required()
    def index():
      if request.json:
      id_usuarioImagem = request.json.get('id')
      imagens_selecionadas = 
  
  
  UsuarioImagem.query.filter(UsuarioImagem.id.in_(id_usuarioImagem)).all()
  
      if imagens_selecionadas:
          for imagem_selecionada in imagens_selecionadas:
              imagem_selecionada.batido=True
          db.session.commit()
          return 'ok', 200
  return 'error', 400
  </code></pre>