sabnzbd/sabnzbd — pull request #36 by tnt (2012-05-06 11:10:53+00:00)
Title: Adding configurable HTTP-headers to smoothen cross-site AJAX API-use

Hello

We discussed this feature in the [forum](http://forums.sabnzbd.org/viewtopic.php?f=1&t=7072).

I don't expect that you pull this code as is. If you would tell me what to do better I would like to do it. I could of course

* change the names of the config options (maybe a common prefix?)
* put the options in a different section
* add the options to the other templates (they are currently only in Plush)

I until now only tested with FF and jquery. If you are interested in adding this feature to sabnzbd I would test the JS-behavior with the current versions of Opera, Safari and IE in all combinations with jquery, plain XHR, and maybe Prototype or some other library if you'd ask me for.

For now I put the header part in the api_handler() routine wich is probably not the right place. If you would tell me where to put it and how to name it that would save me brain work..

Regards, T.

P.S. I am german and my english maybe seems better than it is. So please don't weigh my words. Thank you. - And by the way thank you for sabnzbd in general; I don't know anything comparable.