You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -658,24 +658,26 @@ When use canvas drawer, Canvas toDataURL function does not allow load cross doma
658
658
659
659
- Option 1:
660
660
661
-
Configure the `crossOrigin` attribute([crossorigin](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin)) for the image. Make sure that CORS is configured on the Server side.
662
-
663
-
```JS
664
-
{
665
-
...
666
-
// String which specifies the CORS setting to use when retrieving the image. null means that the crossOrigin attribute is not set. 'anonymous', null.
667
-
crossOrigin : 'anonymous',
668
-
...
669
-
}
670
-
```
661
+
Configure the `crossOrigin` attribute([crossorigin](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin)) for the image. Make sure that CORS is configured on the Server side.
662
+
663
+
```JS
664
+
{
665
+
// ...
666
+
667
+
// String which specifies the CORS setting to use when retrieving the image. null means that the crossOrigin attribute is not set. 'anonymous', null.
668
+
crossOrigin : 'anonymous',
669
+
670
+
// ...
671
+
}
672
+
```
671
673
672
674
- Option 2:
673
675
674
-
Put your image under the same domain with your page.
676
+
Put your image under the same domain with your page.
0 commit comments