Content
Updated by Wieland Lindenthal over 2 years ago
OpenProject's front-end needs to allow the browser to connect to Extend CSP `connect-src` with all addresses of external file servers for direct file uploads. Therefore it needs to extend its content security policy (CSP) \`connect-src\` by storages where
* the host names of all servers that the current user storage is allowed to upload files. That is the case for all storages that activated active in at least one active project in which where the current user is member and has the permission to \`manage\_file\_links\`. `manage_file_links` (other storages are not exposed)
* The allowed values can be different for every appended bit gets cached per user and can change every time a store gets activated, removed, a role changes, or even project memberships. Caching it, without accessing the DB seems to be pretty impossible. So we decided to not do it for now.
We extend the CSP for all HTML requests as work packages can pop in many places of OpenProject, and we want to be able to upload in all those places (work packages module, BCF module, notification center, boards, ...). 10 seconds
*
*
We extend the CSP for all HTML requests as work packages can pop in many places of OpenProject, and we want to be able to upload in all those places (work packages module, BCF module, notification center, boards, ...).