CORS Error - Angular CORS error Resolved

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024
  • #proxy #Angular #API #
    Hello guys in this video im showing how to resolve CORS in angular while calling API.
    dependency:
    npm i express;
    npm i cors;
    npm i http-proxy-middleware;

Комментарии • 6

  • @chandpasha5550
    @chandpasha5550 8 месяцев назад

    I dont have environment so what can i do

  • @nasibehashtari-xv7qw
    @nasibehashtari-xv7qw Год назад

    hi thanks Balaji thanks for your video . I did it but when I served the angular app the 504 Gateway Timeout error

    • @balajiadmane9454
      @balajiadmane9454  Год назад

      you first need to start proxy server. Open terminal/cmd in proxy dir. and type -> node index.js

  • @billnewsr.9314
    @billnewsr.9314 Год назад

    Annoying "music" that is unneeded to show how to resolve the issue.

  • @PRASADARAOGAJULA
    @PRASADARAOGAJULA Год назад

    how to use in production side

    • @balajiadmane9454
      @balajiadmane9454  Год назад

      we can't use this in prod. side and its not secure. When you deploy on same server it will not through CORS error