Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Public shared map cannot display Openstreetmap tile images #1383

Open
5 of 9 tasks
githubnobr opened this issue Feb 3, 2025 · 0 comments
Open
5 of 9 tasks

Comments

@githubnobr
Copy link

⚠️ This issue respects the following points: ⚠️

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

  1. Create a new share link to a map
  2. Copy link to map
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant