Open kaffeeringe opened 2 months ago
any workaround are there? i have installed new nextcloud at v30 through docker compose but i cannot enable external storage support app
occ app enable external
occ app enable external
when i enable external storage and occ app enable app , server can't be accessed, it return 500
Die Einstellungen der Seite haben das Laden einer Ressource (connect-src) auf http://example.com/apps/files/ blockiert, da sie gegen folgende Direktive verstößt: "connect-src 'self' blob: https://stun.nextcloud.com:443""
Are you, in fact, using http?
You didn't really give us much to go on since you left the Issue template basically blank.
This CSP error suggests a misconfiguration, generally speaking.
Check your browser inspect Network tab while recreating the problem. Make sure reasonable URLs are appearing, no mixing of http and https, etc.
@joshtrichards
here is my capture. this image shows this site is running under https scheme but when i try enabling an app, the request is blocked due to mixed scheme.
Same issue here. Worked fine before the upgrade. After upgrade apps are no longer manageable.
My Instance runs under plain http behind a reverse proxy which handles TLS.
This CSP error suggests a misconfiguration, generally speaking.
Why is it suddenly misconfigured after an upgrade when everything was working fine before? Do we need to migrate our configuration to some new format introduced in 30? How?
Why is it suddenly misconfigured after an upgrade when everything was working fine before?
No idea because not one person reporting this in this issue has provided basics like their configuration. ;-)
Under Network in the browser inspect, check the request[s] to https://cloud.domain.tld/apps/files[/]
and post the request+response headers.
Related: #45378
here my some configuration.
forceing https (on config.php) doesn't change anything, behavior is same. only enable or disable apps on administration
browser info on devtools network tab: server responses redirecting to http even though on https scheme server
Request URL:
https://!!!!!!/apps/files
Request Method:
GET
Status Code:
301 Moved Permanently
Referrer Policy:
no-referrer
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sun, 13 Oct 2024 15:33:31 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
Location: http://!!!!!!/apps/files/
Referrer-Policy: no-referrer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Robots-Tag: noindex, nofollow
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Robots-Tag: noindex, nofollow
X-XSS-Protection: 1; mode=block
GET /apps/files HTTP/1.1
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9
Cache-Control: no-cache
Connection: keep-alive
Cookie: !!!!!!
Host: !!!!!!
Pragma: no-cache
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
X-Requested-With: XMLHttpRequest, XMLHttpRequest
requesttoken: !!!!!!
sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
new nextcloud setup configuration
dc
services:
app:
image: docker.io/library/nextcloud:fpm
restart: always
volumes:
- /mnt/storage:/data
- /svc/nextcloud/html:/var/www/html
environment:
NEXTCLOUD_DATA_DIR: /data
POSTGRES_DB: nextcloud
POSTGRES_USER: !!!!!!
POSTGRES_PASSWORD: !!!!!!
POSTGRES_HOST: !!!!!!
web:
image: nginx
restart: always
ports:
- "!!!!!:8080:80"
links:
- app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
- app
server responses redirecting to http even though on https scheme server
Location: http://!!!!!!/apps/files/
That redirect to http
is coming from your infrastructure, not Nextcloud.
See https://github.com/nextcloud/server/issues/44685#issuecomment-2067203058 (and the discussion that follows).
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
⚠️ This issue respects the following points: ⚠️
Bug description
See #44685 - I can't enable apps because of this CSP error. It worked before the update.
Steps to reproduce
Expected behavior
App is enabled
Nextcloud Server version
master
Operating system
None
PHP engine version
PHP 8.1
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response