Skip to content

Commit f093d3a

Browse files
committed
Update readme.md
1 parent 709f7f3 commit f093d3a

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

readme.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -658,24 +658,26 @@ When use canvas drawer, Canvas toDataURL function does not allow load cross doma
658658
659659
- Option 1:
660660
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+
```
671673
672674
- Option 2:
673675
674-
Put your image under the same domain with your page.
676+
Put your image under the same domain with your page.
675677
676678
- Option 3:
677679
678-
Use base64 image.
680+
Use base64 image.
679681
680682
681683

0 commit comments

Comments
 (0)