I am using navigator for communicating with the server , but problem is that we need to pass some header information as there is filter which recognise the request is from t
After searching for an answer for this question I found out that for passing header with navigator we need to pass a blob object.
For example
var headers = {type: 'application/json'}; var blob = new Blob(request, headers); navigator.sendBeacon('url/to/send', blob);