Symptoms
"Failed to get Session by Unexpected error" occasionally occurs if you operate in the following steps.
- Open Jira issue detail screen.
- Open another tab of the browser before the Alfresco panel is completely loaded.
- Go back to tab of Jira issue detail screen.
- "Failed to get Session by Unexpected error" occures.

Causes
Analytics Client Plugin put an HTTP header called x-atlassian-mau-ignore. This header causes Alfresco's CORS to be restricted and an error.
Access-Control-Request-Headers:authorization,x-atlassian-mau-ignore |
Workarounds
There are one possosible workarounds.
- Put x-atlassian-mau-ignore to cors.supportedHeaders in Alfresco's CORS setting.
- Open and Edit /opt/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/web.xml
- Find cors.supportedHeaders and put x-atlassian-mau-ignore.

- Restart Alfresco.
Reference
Atlassian Community : What is the 'x-atlassian-mau-ignore' header & why is my JIRA server rejecting it?