djangosnippets.org: Latest snippets posted by ydmhttps://djangosnippets.org/users/ydm/2013-02-19T05:55:54.198438-06:00ydmHeader view decorators
2013-02-19T05:55:54.198438-06:00ydmhttps://djangosnippets.org/snippets/2895/<p>This file includes two Django view decorators <code>header</code> and <code>headers</code> that provide an easy way to set response headers.</p>
<p>Also, because I have to work with a lot of cross domain requests, I include few shortcuts for convenience to set the Access-Control-Allow-Origin header appropriately.</p>
Freely redistributable