summaryrefslogtreecommitdiff
path: root/web/taginfo.rb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-12-04 09:39:11 +0100
committerJochen Topf <jochen@topf.org>2012-12-04 09:39:11 +0100
commit0e57dcbe8a193b0d3355abc86b3d1c46cefbe2fd (patch)
tree22d94d303869cf435fa8f63842daf0631d85e6fc /web/taginfo.rb
parentc0b0e6f6fa62efe549599ae289d5f3dafeeb4b5a (diff)
downloadtaginfo-0e57dcbe8a193b0d3355abc86b3d1c46cefbe2fd.tar
taginfo-0e57dcbe8a193b0d3355abc86b3d1c46cefbe2fd.tar.gz
Support for CORS
Diffstat (limited to 'web/taginfo.rb')
-rwxr-xr-xweb/taginfo.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/taginfo.rb b/web/taginfo.rb
index 7ce46be..27509f4 100755
--- a/web/taginfo.rb
+++ b/web/taginfo.rb
@@ -135,6 +135,7 @@ class Taginfo < Sinatra::Base
before '/api/*' do
content_type :json
expires next_update
+ headers['Access-Control-Allow-Origin'] = '*'
end
#-------------------------------------