security: enforce use of our fetch function and its default referrerpolicy (#3884)

followup to https://github.com/tldraw/tldraw/pull/3881 to enforce this
in the codebase

Describe what your pull request does. If appropriate, add GIFs or images
showing the before and after.

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [x] `sdk` — Changes the tldraw SDK
- [x] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [ ] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [x] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know
This commit is contained in:
Mime Čuvalo 2024-06-11 14:59:25 +01:00 committed by GitHub
parent 9adb5eec5a
commit 3adae06d9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
68 changed files with 300 additions and 119 deletions

View file

@ -596,6 +596,7 @@ function DebugSvgCopy({ id }: { id: TLShapeId }) {
src={image.src}
width={image.bounds.width}
height={image.bounds.height}
referrerPolicy="no-referrer"
style={{
position: 'absolute',
top: 0,