Skip to content

Commit

Permalink
[7-26] NelmioCorsBundleの設定
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Dec 28, 2015
1 parent ca2d318 commit 7def08a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/config/config.yml
Expand Up @@ -83,3 +83,9 @@ swiftmailer:
fos_rest:
view:
view_response_listener: force

nelmio_cors:
paths:
'^/api/':
allow_origin: []
allow_methods: ['GET']
5 changes: 5 additions & 0 deletions docs/lists/ch07/07-26.txt
@@ -0,0 +1,5 @@
nelmio_cors:
paths:
'^/api/':
allow_origin: []
allow_methods: ['GET']

0 comments on commit 7def08a

Please sign in to comment.