I am using primeng p-fileupload to upload files . I need to send Authorization token to validate the call at server side. i tried to add token in onBeforeUpload, but it's not working.
below is the code that i tried.
event.xhr.setRequestHeader("Authorization", "Bearer " + sessionStorage.getItem("AccessToken"));
I'm able to get noteId ,but it's not working in case of authorization token.
Can you please help me regarding this.