Monday, December 10, 2012

Todoist : Solving cross domain security policy


Solving cross domain security policy [top]

You cannot use AJAX to directly communicate with Todoist, this is due to browser security policy. You can solve this by communicating with Todoist using a script tag:
var script = document.createElement('script');
script.type = 'text/javascript';
The response data will look like this (callbackFunction will be called):
callbackFunction({ JSON data here });

1 comment:

  1. This was one of my unsolved problems and I was tired of searching it on the web. I tried few of the solutions but none worked. I will try this one and write about its working.