Skip to content

Commit

Permalink
Allow DELETE HTTP method for journalist interface
Browse files Browse the repository at this point in the history
Certain Journalist API operations require DELETE (e.g. delete or unstar a source). This will ensure that Apache allows the DELETE operation for new installs (or existing installs after an Ansible run).
  • Loading branch information
emkll committed Jan 8, 2019
1 parent 66e3607 commit ec5466e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ ErrorDocument 500 /error
<Directory /var/www/>
Options {{ apache_dir_options | default('None') }}
AllowOverride None
<Limit GET POST HEAD>
<Limit GET POST HEAD DELETE>
Order allow,deny
allow from {{ securedrop_app_apache_allow_from }}
</Limit>
<LimitExcept GET POST HEAD>
<LimitExcept GET POST HEAD DELETE>
Order deny,allow
Deny from all
</LimitExcept>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def test_apache_headers_journalist_interface(File, header):
<Directory /var/www/>
Options None
AllowOverride None
<Limit GET POST HEAD>
<Limit GET POST HEAD DELETE>
Order allow,deny
allow from {apache_allow_from}
</Limit>
<LimitExcept GET POST HEAD>
<LimitExcept GET POST HEAD DELETE>
Order deny,allow
Deny from all
</LimitExcept>
Expand Down

0 comments on commit ec5466e

Please sign in to comment.