Access-Control-Allow-Origin : Appel api

  • carte113

    61 mensajes

    Francia

    Hello,

    I have a cors error when i call the API.
    What headers should I pass ?

    My headers :
    this.headers = new HttpHeaders({
    'Content-Type': 'application/x-www-form-urlencoded',
    'Accept': 'text/xml',
    'Access-Control-Allow-Origin': '*'
    });

    Should I do a specific config of my nginx server ?

    The error :
    Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur Vinculo (http) . Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant.
  • Cuenta eliminada
    Cuenta eliminada

    0 mensajes

    Bélgica

    Los datos ya no están disponibles porque la cuenta de este usuario ha sido eliminada (Reglamento RGPD)
  • Cuenta eliminada
    Cuenta eliminada

    0 mensajes

    Bélgica

    Los datos ya no están disponibles porque la cuenta de este usuario ha sido eliminada (Reglamento RGPD)
  • carte113

    61 mensajes

    Francia

    I try to call your api in an Angular 4 app.
    The Access-Control-Allow-Origin header should be add by you api without browser will block the call.

    Can you fix that or should I use an other solution ?

Únese a la comunidad de coleccionistas

Inscripción Identificarse