SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Cors

Cross Origin Resource Sharing.

TODO conditional safe headers: content-type, accept, accept-language, content-language
TODO conditional safe is unsafe: >128 characters
TODO restricting origins
TODO support for max-age, caching 'options' requests

Functions

NameVisibilityDescription
handleCorspublic (static)Handling a CORS request.

public handleCors

void Cors::handleCors ( array $config );

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.