Skip to content

Commit ac71610

Browse files
authored
Merge pull request #242 from MITLibraries/cors_post_graphql
Update CORS to allow POST to GraphQL
2 parents 144fe73 + 8e0a2a1 commit ac71610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/application.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class Application < Rails::Application
2727
config.middleware.insert_before 0, Rack::Cors do
2828
allow do
2929
origins '*'
30-
resource '*', headers: :any, methods: [:get]
30+
resource '/api/v1/*', headers: :any, methods: [:get]
31+
resource '/graphql', headers: :any, methods: [:post]
3132
end
3233
end
3334

0 commit comments

Comments
 (0)