TypeError: Cannot read property 'headers' of null! MEAN stack

Discussão em 'Angular' iniciado por Mensa10, Outubro 28, 2024.

  1. Mensa10

    Mensa10 Guest

    I am making a simple ToDoApp with MEAN (Angular 2) stack but I have a problem with the http.post request. Always when I am running the post method, the current JSON object gets inserted into the database. But right after I get an error message and also my current server connection breaks down.

    Insert method:

    [​IMG]

    The error in the console:

    [​IMG]

    CORS is allowed on the backend side and I don't know what else to try.

    Any suggestions?

    Continue reading...

Compartilhe esta Página