Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use "setifempty" instead of "always set" in .htaccess
The headers might already be set by the system administrator at the http server level (apache or nginx) for some or all virtualhosts. Using "always set" in the .htaccess of Nextcloud leads to the situation where the headers are set twice! Which leads to warnings in the admin area. Using "setifempty" solves the problem. In the default case where the system admin didn't do anything, Nextcloud will add them automatically. On the other hand, when the system administrator has already set security headers, we should not add ours on top. See github issues #16893 #16476 #16938 #18017 Signed-off-by: zertrin <zertrin@gmail.com>
- Loading branch information