[Bps-public-commit] smokingit branch, master, updated. a4fd8dd5e39d7d75b6c1bf749ff5f056d2cfd9f9
Alex Vandiver
alexmv at bestpractical.com
Wed Mar 27 17:50:52 EDT 2013
The branch, master has been updated
via a4fd8dd5e39d7d75b6c1bf749ff5f056d2cfd9f9 (commit)
from ccf8e6ea7641e0f59bc8e54a042d934263e1ce43 (commit)
Summary of changes:
app.psgi | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit a4fd8dd5e39d7d75b6c1bf749ff5f056d2cfd9f9
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Mar 27 14:50:30 2013 -0700
Enable cross-site AJAX for interaction with RT
diff --git a/app.psgi b/app.psgi
index ff05fb1..7c47ff7 100644
--- a/app.psgi
+++ b/app.psgi
@@ -1,3 +1,11 @@
+use Plack::Builder;
use Jifty;
Jifty->new;
-Jifty->handler->psgi_app;
+
+builder {
+ enable "CrossOrigin",
+ origins => ["https://tickets.bestpractical.com", "http://localhost:8008"],
+ methods => ["GET"];
+
+ Jifty->handler->psgi_app;
+};
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list