ellinaut/cors-bundle

A bundle to allow CORS request to the server

Installs: 265

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.0 2022-08-04 09:54 UTC

This package is auto-updated.

Last update: 2024-11-08 12:19:59 UTC


README

cors:
  patterns:
    '*': ~
cors:
  patterns:
    '*':
      handle_options: true
      credentials: true
      origin: [ '*' ]
      methods:
        - 'OPTIONS'
        - 'HEAD'
        - 'GET'
        - 'POST'
        - 'PATCH'
        - 'PUT'
        - 'DELETE'
      additional_methods: [ ]
      headers:
        - 'Access-Control-Allow-Headers'
        - 'Access-Control-Request-Method'
        - 'Access-Control-Request-Headers'
        - 'Access-Control-Allow-Credentials'
        - 'Origin'
        - 'Authorization'
        - 'Content-Type'
        - 'Accept'
        - 'Accept-Language'
        - 'Vary'
        - 'X-Requested-With'
      additional_headers: [ ]