Changes to allow cookies on request