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
If you're using Chrome and you're trying to set the content-type header, you'll probably have some issues due to security restrictions :
Uncaught DOMException: Failed to execute 'sendBeacon' on 'Navigator': sendBeacon() with a Blob whose type is not any of the CORS-safelisted values for the Content-Type request header is disabled temporarily. See http://crbug.com/490015 for details.
See this thread