Skip to content

Commit 30a1d44

Browse files
authored
update for img src tags
1 parent 200fa5d commit 30a1d44

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/declarative-customization/formatting-syntax-reference.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Specifies the type of element to create. Valid elements include:
1414
- div
1515
- span
1616
- a
17-
- img
17+
- [img](#img-src-security)
1818
- svg
1919
- path
2020
- button
@@ -34,6 +34,13 @@ If the thumbnail loads successfully, a small [brand type icon](https://developer
3434
"src": "@thumbnail.medium"
3535
}
3636
```
37+
### img src security
38+
39+
Images from the following domains are allowed:
40+
- tenant ___domain, configured multi-geo domains and vanity domains (company.sharepoint.com)
41+
- cdn.office.net, akamaihd.net, static2.sharepointonline.com CDNs
42+
43+
most other external image sources are blocked by default in custom formatters. To include external images and allow specific domains or CDNs, the ___domain needs to be added to a site-level setting - [HTMLFieldSecurity](https://support.microsoft.com/en-us/office/allow-or-restrict-the-ability-to-embed-content-on-sharepoint-pages-e7baf83f-09d0-4bd1-9058-4aa483ee137b)
3744

3845
## txtContent
3946

0 commit comments

Comments
 (0)