SproutCMS

This is the code documentation for the SproutCMS project

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

Source code (3 results)

/sprout/Helpers/Cors.php   Highlighted file source

Line 28: class Cors
Line 31: // Default (limited) config for handling CORS.
Line 46: // https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_response_header
Line 57: // CORS safe headers.
Line 66: // CORS headers.
Line 74: * Handling a CORS request.
Line 76: * This is a work-in-progress. CORS is a big thing so there's some edge
Line 83: public static function handleCors($config = [])
Line 88: // CORS is purely a browser protection and doesn't extend to
Line 142: // Browsers don't like to show the contents on a bad CORS request.

/sprout/Helpers/Locales/LocaleInfoFRA.php   Highlighted file source

Line 51: 'Corse-du-Sud',
Line 52: 'Haute-Corse',

/sprout/Helpers/Locales/LocaleInfoFRA.php   Highlighted file source

Line 51: 'Corse-du-Sud',
Line 52: 'Haute-Corse',

A total of 14 lines in 3 files were found