Skip to content

Commit

Permalink
update the default cors configs (zooniverse#3210)
Browse files Browse the repository at this point in the history
match the changes from in zooniverse#3206 and zooniverse#3199
  • Loading branch information
camallen authored and zwolf committed Mar 24, 2020
1 parent 6022e71 commit f745980
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/cors_config.yml.hudson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ default: &default
expose: [ ETag, X-CSRF-Token ]
max_age: 300
allows:
- {origins: '*', resource: '*'}
- { origins: !ruby/regexp '/^https?:\/\/(127\.0\.0\.1|localhost|[a-z0-9-]+\.local)(:\d+)?$/', resource: '/users*', credentials: true }
- { origins: !ruby/regexp '/^https?:\/\/(127\.0\.0\.1|localhost|[a-z0-9-]+\.local)(:\d+)?$/', resource: '/oauth/*', credentials: true }
- { origins: '*', resource: '/api/*' }
- { origins: '*', resource: '/graphql' }


development:
<<: *default
Expand Down

0 comments on commit f745980

Please sign in to comment.