mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-02 02:04:45 +03:00
Configure `ImageProxyService` in `AffineLinkPreviewExtension`, make its URL reactive, and add `crossorigin="anonymous"` to image-proxy images. Add an Electron `Referer` header for internal `assets://` worker requests. Normalize custom-scheme and IP origins in `worker.allowedOrigin`, and allow `x-affine-client-kind` in link-preview CORS preflight responses. Closes #14865 Co-authored-by: DarkSky <darksky2048@gmail.com>