mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 19:36:00 +01:00
POST Requests to repository WS fail with "Can't verify CSRF token authenticity" (#37562).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21766 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -143,4 +143,11 @@ class SysControllerTest < Redmine::ControllerTest
|
||||
assert_include 'Access denied', response.body
|
||||
end
|
||||
end
|
||||
|
||||
def test_should_skip_verify_authenticity_token
|
||||
ActionController::Base.allow_forgery_protection = true
|
||||
assert_nothing_raised {test_create_project_repository}
|
||||
ensure
|
||||
ActionController::Base.allow_forgery_protection = false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user