This step-by-step tutorial will walk through how to set a CORS cookie in PHP. Free example code download included.