How to pass cookies while redirecting to external url in angular?

Discussão em 'Angular' iniciado por Nandha Kumar, Março 17, 2025.

  1. Nandha Kumar

    Nandha Kumar Guest

    On click of a button, i need to open a link(for example say https://angular.io/) in new tab and pass cookie with the url. i can open the link in new tab but how to pass the cookies.

    var cookie = "hello-world"
    onSubmit() {
    window. open(
    "https://angular.io", "_blank");
    }

    Continue reading...

Compartilhe esta Página