Try a console.log on line 19 to debug the url. (Just to ensure that it is getting set to what we assume it is)
Thanks for the hint.
The url value is correct. I have checked it again with debug as you recommended.
Hi Marcin, are there any errors in the browser console?
That was the correct a hint. Browser security policy enforced in my company was blocking 3rd party cookies in Chrome.