Skip to content

Instantly share code, notes, and snippets.

@fl00r
Created July 9, 2013 08:00
Show Gist options
  • Save fl00r/5955527 to your computer and use it in GitHub Desktop.
Save fl00r/5955527 to your computer and use it in GitHub Desktop.
Simple rack app
run proc{
res = "Hello World"
[
200,
{
"Connection" => "close",
"Access-Control-Allow-Origin" => [ "http://domain1.com", "http://domain2.com" ] * "\n",
"Content-Length" => res.bytesize.to_s
},
[res]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment