Added XMLHttpRequest headers
when JSOPN is not used.
Merge pull request #8 from rskowera/fix-XMLHttpRequest

Added XMLHttpRequest headers