Re: CORS Request Handling

2012-09-20 Thread lowpass
Looks like a job for CakeResponse. http://mark-story.com/posts/view/cakeresponse-in-cakephp-2-0 http://book.cakephp.org/2.0/en/controllers/request-response.html On Wed, Sep 19, 2012 at 6:07 PM, Robert wrote: > Hello All, > > I'm in the process of getting CORS (Cross-Origin Resource Sharing) for

CORS Request Handling

2012-09-19 Thread Robert
Hello All, I'm in the process of getting CORS (Cross-Origin Resource Sharing) for my API which is done using CakePHP (duh!) and I wanted to know if anyone had any insight as to where the best place was to put the CORS header responses. I currently have a really hacked up bunch of code at the to