Warning: The magic method SFML_Singleton::__wakeup() must have public visibility in /home/public/wp-content/plugins/sf-move-login/inc/classes/class-sfml-singleton.php on line 72
Responding to HTTP OPTIONS requests in CakePHP – Thoughts, etc.

Responding to HTTP OPTIONS requests in CakePHP

I recently needed to add [crayon-687b5d99e99b2233385790-i/] headers to resources on an API developed with CakePHP. There’s a good description of how to accomplish this from ThinkingMedia in 2015, but it uses DispatcherFilters, which have since been deprecated in favour of Middleware. The [crayon-687b5d99e99bf378311573-i/]  and [crayon-687b5d99e99c2549398741-i/] objects available to middleware have different interfaces than those retrieved from the event data in the … Continue reading Responding to HTTP OPTIONS requests in CakePHP