Permalink
Browse files

Remove useless CORS headers

  • Loading branch information...
1 parent 3f58d28 commit 19414b85cb7db52dfe7257f95f66217b061e0242 louisremi committed Jun 14, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 demos/friends timeline/sse.php
@@ -2,8 +2,6 @@
// Send appropriate mime type
header("Content-Type: text/event-stream\n\n");
-// Allow Cross-Origin XmlHTTPRequest
-header("Access-Control-Allow-Origin: *\n\n");
// Parse messages
$filename = "timelineEvents.txt";
@@ -13,9 +11,9 @@
$messages = preg_split( "/\n\n/", $contents );
-// Send a new message very 10 to 30
+// Send a new message very 2 to 7 seconds
foreach ( $messages as $message ) {
- sleep( rand(2,7) );
+ sleep( rand(2, 7) );
echo $message;
echo "\n\n";

0 comments on commit 19414b8

Please sign in to comment.