Navigate back in Safari onBeforeunload event getting error
Hello Community,
Environment: Angular 8 + Typescript
I have a problem when I press back button in safari. onBeforeunload event I am requesting server call to do some operation(close session). For server request I am using windows authentication + kerberos authentication.
I am using sendBecaon for server call. Its working in Chrome, Firefox, Edge and opera browsers. But not working in Safari browser.
Getting 401 error.
I have tried with sendBeacon and normal server call.
Both cases I am getting error.
How can I async server call in onBeforeunload event ?
How Can I solve problem ?
Regards
Naresh