I have custom web application using ArcGIS Api for Javascript 3.32 and trying to implement export map. I am using the same code as here: Print templates with esri.request | ArcGIS API for JavaScript 3.32
But always getting this error:
TypeError: Cannot read property '3' of null
at new h (init.js:457)
at b.hasSameOrigin (init.js:731)
at init.js:731
at Object.some (init.js:70)
at Object.b.canUseXhr (init.js:731)
at A (init.js:958)
at f (init.js:966)
at H (init.js:974)
at init.js:974
at c (init.js:104)
As a Print Task I am using this: Task: Export Web Map Task
Not sure where is the problem. Any help?