SVG image not showing in server side rendering

You may need another value, like “Anonymous”

The value of “use-credentials” can sometimes cause SVG image drawing to fail, where “Anonymous” would succeed if there are no credentials needed. This is true when using images from Wikipedia at least.

There’s a live example of that here, outside of GoJS. An SVG image is drawn to a Canvas and then made into a base64 image URI. If you set the crossOrigin flag wrong, it won’t even get drawn to the Canvas. https://codepen.io/simonsarris/pen/gOMdxKd

1 Like