hanaboso / rest-bundle
Hanaboso - rest-bundle
1.4.0
2024-06-19 08:29 UTC
Requires
- php: ^8.3
- ext-ctype: *
- ext-intl: *
- ext-mbstring: *
- hanaboso/utils: ^1.5
- symfony/dependency-injection: ^7.1
- symfony/serializer: ^7.1
Requires (Dev)
- hanaboso/php-check-utils: ^1.6
- symfony/yaml: ^7.1
Conflicts
This package is auto-updated.
Last update: 2024-12-06 16:11:37 UTC
README
Installation
composer require hanaboso/rest-bundle
Configuration
rest:
routes:
^/: ['json', 'xml']
decoders:
json: 'rest.decoder.json'
xml: 'rest.decoder.xml'
cors:
^/:
origin: ['*']
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS']
headers: ['Content-Type']
credentials: TRUE
security:
^/:
X-Frame-Options: 'sameorigin'
X-XSS-Protection: '1; mode=block'
X-Content-Type-Options: 'nosniff'
Content-Security-Policy: "default-src * data: blob: 'unsafe-inline' 'unsafe-eval'"
Strict-Transport-Security: 'max-age=31536000; includeSubDomains; preload'
Referrer-Policy: 'strict-origin-when-cross-origin'
Feature-Policy: "accelerometer 'self'; ambient-light-sensor 'self'; autoplay 'self'; camera 'self'; cookie 'self'; docwrite 'self'; domain 'self'; encrypted-media 'self'; fullscreen 'self'; geolocation 'self'; gyroscope 'self'; magnetometer 'self'; microphone 'self'; midi 'self'; payment 'self'; picture-in-picture 'self'; speaker 'self'; sync-script 'self'; sync-xhr 'self'; unsized-media 'self'; usb 'self'; vertical-scroll 'self'; vibrate 'self'; vr 'self'"
Expect-CT: 'max-age=3600'