Skip to content

Instantly share code, notes, and snippets.

@sdieunidou
Created November 25, 2015 15:20
Show Gist options
  • Save sdieunidou/7e13fae369a1d6d164bc to your computer and use it in GitHub Desktop.
Save sdieunidou/7e13fae369a1d6d164bc to your computer and use it in GitHub Desktop.
nelmio_cors:
defaults:
allow_credentials: false
allow_origin: []
allow_headers: []
allow_methods: []
expose_headers: []
max_age: 0
hosts: []
paths:
'^/api/':
allow_origin: ['*']
allow_headers: ['X-Custom-Auth']
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
'^/oauth/':
allow_origin: ['*']
allow_headers: ['X-Custom-Auth']
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment