Skip to content

Commit

Permalink
fix graphql events
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlindsey committed Nov 16, 2020
1 parent c0594d3 commit 4e3d963
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ class Application < Rails::Application
# Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.api_only = true
config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*',
headers: %w[Authorization],
methods: :any,
expose: %w[Authorization],
max_age: 600
end
end
#config.api_only = true
#config.middleware.insert_before 0, Rack::Cors do
# allow do
# origins '*'
# resource '*',
# headers: %w[Authorization],
# methods: :any,
# expose: %w[Authorization],
# max_age: 600
# end
#end
# Don't generate system test files.
config.generators.system_tests = nil
end
Expand Down

0 comments on commit 4e3d963

Please sign in to comment.