Add support of fetch in Ajax.js if it's available. XHR missed referer header in HTTP request, fetch can fix this issue.