{"action":"opened","issue":{"url":"https://api.github.com/repos/supercool/Pimp-My-Matrix/issues/11","labels_url":"https://api.github.com/repos/supercool/Pimp-My-Matrix/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/supercool/Pimp-My-Matrix/issues/11/comments","events_url":"https://api.github.com/repos/supercool/Pimp-My-Matrix/issues/11/events","html_url":"https://github.com/supercool/Pimp-My-Matrix/issues/11","id":114172318,"number":11,"title":"Breaks with CSRF on","user":{"login":"bossanova808","id":731309,"avatar_url":"https://avatars.githubusercontent.com/u/731309?v=3","gravatar_id":"","url":"https://api.github.com/users/bossanova808","html_url":"https://github.com/bossanova808","followers_url":"https://api.github.com/users/bossanova808/followers","following_url":"https://api.github.com/users/bossanova808/following{/other_user}","gists_url":"https://api.github.com/users/bossanova808/gists{/gist_id}","starred_url":"https://api.github.com/users/bossanova808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bossanova808/subscriptions","organizations_url":"https://api.github.com/users/bossanova808/orgs","repos_url":"https://api.github.com/users/bossanova808/repos","events_url":"https://api.github.com/users/bossanova808/events{/privacy}","received_events_url":"https://api.github.com/users/bossanova808/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T00:07:19Z","updated_at":"2015-10-30T00:07:19Z","closed_at":null,"body":"Hi Josh\r\n\r\nAs per slack, PMM2 breaks if CSRF is on in config\r\n\r\n```\r\n2015/10/29 22:49:21 [error] [exception.Craft\\HttpException.400] exception 'Craft\\HttpException' with message 'The CSRF token could not be verified.' in /var/www/vhosts/craft/craft/app/services/HttpRequestService.php:1329\r\nStack trace:\r\n#0 /var/www/vhosts/craft/craft/app/framework/base/CComponent.php(561): Craft\\HttpRequestService->validateCsrfToken(Object(CEvent))\r\n#1 /var/www/vhosts/craft/craft/app/framework/base/CApplication.php(211): CComponent->raiseEvent('onBeginRequest', Object(CEvent))\r\n#2 /var/www/vhosts/craft/craft/app/framework/base/CApplication.php(182): CApplication->onBeginRequest(Object(CEvent))\r\n#3 /var/www/vhosts/craft/craft/app/index.php(62): CApplication->run()\r\n#4 /var/www/vhosts/craft/public_html/index.php(19): require_once('/var/www/vhosts...')\r\n#5 {main}\r\nREQUEST_URI=/index.php/ghost/actions/pimpMyMatrix/blockTypes/saveBlockTypes\r\nHTTP_REFERER=https://*****/pimpmymatrix\r\n---\r\n2015/10/29 22:49:21 [trace] [system.CModule] Loading \"errorHandler\" application component\r\nin /var/www/vhosts/craft/craft/app/etc/web/WebApp.php (583)\r\n2015/10/29 22:49:21 [error] [application] The CSRF token could not be verified.\r\nin /var/www/vhosts/craft/craft/app/etc/errors/ErrorHandler.php (95)\r\n2015/10/29 22:49:21 [trace] [system.CModule] Loading \"urlManager\" application component\r\nin /var/www/vhosts/craft/craft/app/etc/web/WebApp.php (583)\r\nin /var/www/vhosts/craft/craft/app/controllers/BaseController.php (50)\r\nin /var/www/vhosts/craft/craft/app/etc/errors/ErrorHandler.php (264)\r\n```\r\n\r\nWith it turned off all is well."}}