files: allow api.occupymedia.cc in the oCIS CSP connect-src

The oCIS web fetches the OIDC discovery document from the Hub issuer in the
browser — connect-src only allowed same-origin + blob, so the fetch was
blocked and the web fell back to its own login. With the CSP fix + the
external issuer flip, the full SSO chain works: Hub login -> authorize ->
consent SPA -> code -> autoprovisioned personal drive.
This commit is contained in:
glass beadian 2026-10-13 19:07:32 +00:00
parent 3117e1c18e
commit 7aa99681dd

View file

@ -2,7 +2,7 @@
directives:
default-src: ["'none'"]
child-src: ["'self'"]
connect-src: ["'self'", "blob:"]
connect-src: ["'self'", "blob:", "https://api.occupymedia.cc"]
font-src: ["'self'", "data:"]
# The Hub's in-app Drive view (app.occupymedia.cc/files/drive) frames oCIS web.
frame-ancestors: ["'self'", "https://app.occupymedia.cc"]