Skip to content

Instantly share code, notes, and snippets.

@fl00r
Created July 9, 2013 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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