SproutCMS

This is the code documentation for the SproutCMS project

function handleCors()

Handling a CORS request.

This is a work-in-progress. CORS is a big thing so there's some edge
cases that this doesn't yet handle.

Usage

void Cors::handleCors ( array $config );

Arguments

  1. array $config
    [ headers, methods ]

Exceptions thrown

Return value

  • void
    exits if invalid or pre-flight