2017 © Pedro Peláez
 

symfony-bundle auto-preflight-bundle

A simple bundle to automatically generate responses for CORS preflight.

image

benkle/auto-preflight-bundle

A simple bundle to automatically generate responses for CORS preflight.

  • Friday, October 14, 2016
  • by bizzl-greekdog
  • Repository
  • 1 Watchers
  • 0 Stars
  • 199 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AutoPreflightBundle

A simple bundle to automatically generate responses for CORS preflight., (*1)

Install

Install with composer., (*2)

$ composer require benkle/auto-preflight-bundle

Add this to your kernel bundles:, (*3)

new Benkle\AutoPreflightBundle\BenkleAutoPreflightBundle(),

Configuration

Add this section to your config.yaml:, (*4)

benkle_auto_preflight:
    allow_origin: '*'
    allow_headers: x-auth-token

Both allow_origin and allow_headers are currently string values, and are send as is to the browser., (*5)

You also must use the field methods in your route definitions, or only GET will be available., (*6)

The Versions

14/10 2016

dev-master

9999999-dev

A simple bundle to automatically generate responses for CORS preflight.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Benjamin Kleiner

14/10 2016

0.90

0.90.0.0

A simple bundle to automatically generate responses for CORS preflight.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Benjamin Kleiner