Protection set to false

James Peret 10 lat temu
rodzic
commit
ab46536e76
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      main.rb

+ 2 - 1
main.rb

@@ -38,10 +38,11 @@ Whois::Server.define :tld, ".network", "whois.donuts.co"
38 38
 
39 39
 before do
40 40
    content_type :json
41
-   headers  'Access-Control-Allow-Origin' => '*', 
41
+   headers  'Access-Control-Allow-Origin' => '*',
42 42
             'Access-Control-Allow-Methods' => ['OPTIONS', 'GET', 'POST']
43 43
 end
44 44
 
45
+set :protection, false
45 46
 
46 47
 helpers do
47 48
   def whois_structs_hash(whois)