This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree 3 files changed +0
-15
lines changed
3 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ gem 'mime-types', '~> 3.1'
21
21
gem 'pg' , '~> 0.18'
22
22
gem 'plek'
23
23
gem 'puma' , '~> 3.7'
24
- gem 'rack-cors' , require : 'rack/cors'
25
24
gem 'rails' , '~> 5.1.6'
26
25
gem 'rest-client' , '~> 2.0.2'
27
26
gem 'rubyzip' , '~> 1.2'
Original file line number Diff line number Diff line change 252
252
rack (2.0.4 )
253
253
rack-cache (1.7.1 )
254
254
rack (>= 0.4 )
255
- rack-cors (1.0.1 )
256
255
rack-protection (2.0.1 )
257
256
rack
258
257
rack-test (1.0.0 )
@@ -453,7 +452,6 @@ DEPENDENCIES
453
452
pry-rails
454
453
pry-stack_explorer (~> 0.4.9 )
455
454
puma (~> 3.7 )
456
- rack-cors
457
455
rails (~> 5.1.6 )
458
456
rest-client (~> 2.0.2 )
459
457
rspec (~> 3.6 )
Original file line number Diff line number Diff line change @@ -40,22 +40,10 @@ class Application < Rails::Application
40
40
html_tag
41
41
}
42
42
43
- # TODO: replace the origins wildcard to accept requets from find only?
44
- # https://github.com/cyu/rack-cors#origin
45
- config . middleware . insert_before 0 , Rack ::Cors do
46
- allow do
47
- origins '*'
48
- resource '*' , headers : :any , methods : [ :get ]
49
- end
50
- end
51
-
52
43
config . autoload_paths += [ Rails . root . join ( "app/workers" ) ]
53
44
config . autoload_paths += [ Rails . root . join ( "lib/validators" ) ]
54
45
config . autoload_paths += [ Rails . root . join ( "lib/ckan" ) ]
55
46
56
47
config . elasticsearch = config_for ( :elasticsearch )
57
-
58
- config . filter_parameters << :password
59
- config . filter_parameters << :password_confirmation
60
48
end
61
49
end
You can’t perform that action at this time.
0 commit comments