[csw-devel] SF.net SVN: gar:[17293] csw/mgar/gar/v2/lib/web/pkgdb_web.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Mar 4 15:56:50 CET 2012


Revision: 17293
          http://gar.svn.sourceforge.net/gar/?rev=17293&view=rev
Author:   wahwah
Date:     2012-03-04 14:56:50 +0000 (Sun, 04 Mar 2012)
Log Message:
-----------
pkgdb: Allow to fetch package data from JavaScript from other websites

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/web/pkgdb_web.py

Modified: csw/mgar/gar/v2/lib/web/pkgdb_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/pkgdb_web.py	2012-03-04 14:56:21 UTC (rev 17292)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py	2012-03-04 14:56:50 UTC (rev 17293)
@@ -405,6 +405,7 @@
       srv4 = res.getOne()
       mimetype, data = srv4.GetRestRepr()
       web.header('Content-type', mimetype)
+      web.header('Access-Control-Allow-Origin', '*')
       return json.dumps(data)
     except sqlobject.main.SQLObjectNotFound:
       return json.dumps(None)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list