# Auth0 opens a redirect-window on page refresh (Angular)

**URL:** <https://community.auth0.com/t/auth0-opens-a-redirect-window-on-page-refresh-angular/200137>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [May 21, 2026, 5:57am UTC](https://community.auth0.com/t/auth0-opens-a-redirect-window-on-page-refresh-angular/200137 "2026-05-21T05:57:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanheek](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vanheek/32/60293_2.png) [@vanheek](https://community.auth0.com/u/vanheek)\
**Post date:** [May 21, 2026, 5:57am UTC](https://community.auth0.com/t/auth0-opens-a-redirect-window-on-page-refresh-angular/200137/1 "2026-05-21T05:57:53Z")

</div>

Since a few days the behaviour on page refresh (localhost) has changed.

Usually Auth0 remembers that I was loged in and I could redirect to the site where I did the page refresh.

Now I am redirected to an auth0 site where I should confirm that I allow the user to enter this app. After I click on “Annehmen” I am redirected to my app, but lost the original URL that I could use for a redirect.

What has changed the last days?

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [May 21, 2026, 11:03pm UTC](https://community.auth0.com/t/auth0-opens-a-redirect-window-on-page-refresh-angular/200137/3 "2026-05-21T23:03:53Z")

</div>

Hi @vanheek

Welcome back to the Auth0 Community!

The behavior changed because your web browser recently received an update that strictly blocks **third-party cookies**. This breaks Auth0’s ability to silently restore your session in the background on `localhost` . Because the silent restore fails, your app is forcing a full interactive login. The consent screen (with the “Annehmen” button) appears because Auth0 has a strict, hardcoded security rule: applications running on `localhost` are _never_ allowed to silently skip user consent.

**[Solution]:**  
To fix this and restore your seamless page refresh behavior, you need to transition away from relying on third-party cookies. The best way to do this is by enabling **Refresh Token Rotation**.

1. Go to your Auth0 Dashboard \> **Applications** \> **Applications**.
2. Select your Application.
3. Scroll down to the **Refresh Token Rotation** toggle and turn it on.
4. Save the changes.

In your frontend code , update your Auth0 initialization configuration to use refresh tokens and store them in local storage. This allows the token to survive page refreshes without needing the iframe or third-party cookies. If you need help with the specifics, let me know.

Once you make this change, log in once interactively. After that, you can refresh the page as much as you want, and your session will be restored instantly from local storage.

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 4, 2026, 11:04pm UTC](https://community.auth0.com/t/auth0-opens-a-redirect-window-on-page-refresh-angular/200137/4 "2026-06-04T23:04:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
