Created
January 8, 2015 07:57
-
-
Save teklakct/17c6e94fddfb8ab0a86a to your computer and use it in GitHub Desktop.
fosrest i nelmiocors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fos_rest: | |
routing_loader: | |
default_format: json | |
include_format: false | |
param_fetcher_listener: true | |
body_converter: | |
enabled: true | |
serializer: | |
groups: ['Default'] | |
body_listener: true | |
format_listener: | |
rules: | |
- { path: '^/administration', priorities: ['html'], fallback_format: html, prefer_extension: true } | |
- { path: '^/', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true } | |
access_denied_listener: | |
json: true | |
view: | |
formats: | |
json: true | |
file: true | |
view_response_listener: 'force' | |
nelmio_cors: | |
paths: | |
'^/': | |
allow_credentials: true | |
allow_origin: ['*'] | |
allow_headers: ['X-WSSE', 'Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'If-Modified-Since', 'Last-Modified'] | |
allow_methods: ['POST', 'PUT', 'GET', 'DELETE', 'PATCH'] | |
max_age: 3600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment