Skip to content

Provides CORS headers for your application responses.

Notifications You must be signed in to change notification settings

PioneerGeek/ZfCors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ZfCors

Provides CORS headers for your application responses.

Installation


Add ZfCors to your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Punchkick-Interactive/ZfCors.git"
        }
    ],
    "require": {
        "punchkick-interactive/ZfCors": "dev-master"
    }
}

Usage


The module ships with default headers preconfigured in its module.config.php as follows:

'corsHeaders' => array(
    'access-control-allow-headers' => 'accept, accept-encoding, content-type',
    'access-control-allow-methods' => '*',
    'access-control-allow-origin' => '*',
),

Feel free to override the above default headers in your app's module.config.php or any config files you have as you need.

And That's All!


About

Provides CORS headers for your application responses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published