Why does the navigator.sendBeacon() not follow Refresh header in php?

370 Views Asked by At

Navigator.sendBeacon() does not follow Refresh header redirects, unlike regular 3xx server redirects. For example, in PHP:

header('Location: https://destination.url',true,3xx);

The above server code is followed without any issues by sendBeacon(). However, it fails to follow:

header('Refresh: 0; url=https://destination.url');

Is there anything the server can send along with the Refresh redirect header to get sendBeacon() to follow it correctly?

0

There are 0 best solutions below