Exclude xhr request to save return_url

https://kaizen.qiita.com/sadano/items/a1b2e599fa3fb317fee7#comment-a8b9159e2cbd4f8f5f47

Ajax request should not be considered as return url.