maps
maps copied to clipboard
[Bug]: Public shared map cannot display Openstreetmap tile images
β οΈ This issue respects the following points: β οΈ
- [x] This is a bug, not a question or a configuration/webserver/proxy issue.
- [x] This issue is not already reported on Github (I've searched it).
- [x] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [x] Maps app is up to date. See Maintenance and Release Schedule for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct.
Bug description
Public shared map cannot display Openstreetmap tile images.
Error In the browser console: Refused to load the image 'https://tile.openstreetmap.org/7/66/44.png' because it violates the following Content Security Policy directive: "img-src 'self' data: blob: https://.tile.openstreetmap.org https://server.arcgisonline.com https://.cartocdn.com https://.opentopomap.org https://.ssl.fastly.net https://*.openstreetmap.se https://nominatim.openstreetmap.org".
In PublicPageController.php I havenβt found the Openstreetmap Url without subdomain: $csp->addAllowedImageDomain('https://tile.openstreetmap.org');
Steps to reproduce
- Create a new share link to a map
- Copy link to map
- Open map with this link
Expected behavior
Map with openstreetmap tiles
Installation method
None
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install of the server?
None
Is this bug present after an update or on a fresh install of the app?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- [ ] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
List of activated Apps
Enabled:
- activity: 3.0.0
- app_api: 4.0.5
- bruteforcesettings: 3.0.0
- calendar: 5.0.9
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- collectives: 2.16.0
- comments: 1.20.1
- contacts: 6.1.3
- contactsinteraction: 1.11.0
- cookbook: 0.11.2
- dashboard: 7.10.0
- dav: 1.31.1
- deck: 1.14.3
- drawio: 3.0.3
- external: 5.5.2
- federatedfilesharing: 1.20.0
- federation: 1.20.0
- files: 2.2.0
- files_downloadlimit: 3.0.0
- files_external: 1.22.0
- files_pdfviewer: 3.0.0
- files_reminders: 1.3.0
- files_sharing: 1.22.0
- files_trashbin: 1.20.1
- files_versions: 1.23.0
- firstrunwizard: 3.0.0
- groupfolders: 18.0.9
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- mail: 4.1.2
- maps: 1.5.0
- metadata: 0.21.0
- music: 2.1.1
- nextcloud_announcements: 2.0.0
- notifications: 3.0.0
- oauth2: 1.18.1
- password_policy: 2.0.0
- photos: 3.0.2
- polls: 7.2.9
- privacy: 2.0.0
- provisioning_api: 1.20.0
- quicknotes: 0.8.23
- recognize: 8.2.0
- recommendations: 3.0.0
- related_resources: 1.5.0
- richdocuments: 8.5.3
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- spreed: 20.1.3
- support: 2.0.0
- survey_client: 2.0.0
- systemtags: 1.20.0
- text: 4.1.0
- theming: 2.5.0
- theming_customcss: 1.18.0
- twofactor_backupcodes: 1.19.0
- updatenotification: 1.20.0
- user_status: 1.10.0
- viewer: 3.0.0
- weather_status: 1.10.0
- webhook_listeners: 1.1.0-dev
- welcome: 1.2.1
- whiteboard: 1.0.5
- workflowengine: 2.12.0
Nextcloud Signing status
Nextcloud Logs
Browser Console
Additional info
No response