hanaboso/rest-bundle

Hanaboso - rest-bundle

1.3.0 2023-12-13 17:55 UTC

This package is auto-updated.

Last update: 2024-04-13 18:38:44 UTC


README

Build Status Coverage Status PHPStan Downloads

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'