vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21576: LJSUP-11658: Add HTTP header for CDN

Committer: vad
LJSUP-11658: Add HTTP header for CDN
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-03-28 13:23:05 UTC (rev 21575)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-03-28 13:42:01 UTC (rev 21576)
@@ -347,6 +347,11 @@
          LJ::Request->uri($uri);
     }
 
+    ## allow cross domain ajax for (l-).stat domain
+    if ($host eq "stat.$LJ::DOMAIN"){
+        LJ::Request->header_out('Access-Control-Allow-Origin' => '*');
+    }
+
     # disable TRACE (so scripts on non-LJ domains can't invoke
     # a trace to get the LJ cookies in the echo)
     if (LJ::Request->method_number == LJ::Request::M_TRACE) {

Tags: livejournal, pm, vad, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments