{"action":"created","issue":{"url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/83","labels_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/83/comments","events_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/83/events","html_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/83","id":58183375,"number":83,"title":"Provide an empty session if CSRF is invalid","user":{"login":"andrewgarner","id":2715,"avatar_url":"https://avatars.githubusercontent.com/u/2715?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewgarner","html_url":"https://github.com/andrewgarner","followers_url":"https://api.github.com/users/andrewgarner/followers","following_url":"https://api.github.com/users/andrewgarner/following{/other_user}","gists_url":"https://api.github.com/users/andrewgarner/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewgarner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewgarner/subscriptions","organizations_url":"https://api.github.com/users/andrewgarner/orgs","repos_url":"https://api.github.com/users/andrewgarner/repos","events_url":"https://api.github.com/users/andrewgarner/events{/privacy}","received_events_url":"https://api.github.com/users/andrewgarner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T09:14:59Z","updated_at":"2015-02-19T10:25:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/83","html_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/83","diff_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/83.diff","patch_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/83.patch"},"body":"In production we have seen a few CORS requests using the HTTP `OPTIONS` verb. These are generating a 500 error because a `ActionController::InvalidAuthenticityToken` was being throw when we try and gracefully render a 404 page.\r\n\r\nThis change provides an empty session if CSRF token is invalid for the request but doesn't reset it completely. Used as default if `:with` option is not specified."},"comment":{"url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/comments/75029069","html_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/83#issuecomment-75029069","issue_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/83","id":75029069,"user":{"login":"stevenwilkin","id":45121,"avatar_url":"https://avatars.githubusercontent.com/u/45121?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenwilkin","html_url":"https://github.com/stevenwilkin","followers_url":"https://api.github.com/users/stevenwilkin/followers","following_url":"https://api.github.com/users/stevenwilkin/following{/other_user}","gists_url":"https://api.github.com/users/stevenwilkin/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenwilkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenwilkin/subscriptions","organizations_url":"https://api.github.com/users/stevenwilkin/orgs","repos_url":"https://api.github.com/users/stevenwilkin/repos","events_url":"https://api.github.com/users/stevenwilkin/events{/privacy}","received_events_url":"https://api.github.com/users/stevenwilkin/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T10:25:30Z","updated_at":"2015-02-19T10:25:30Z","body":":shipit: "}}