withCredentials property

bool? withCredentials
final

This attribute makes the browser include credentials (cookies, authorization headers or TLS client certificates) in the request to fetch the 3D model. It's useful if the 3D model file is stored on another server that require authentication. By default the file will be fetch without credentials. Note that this has no effect if you are loading files locally or from the same domain.

<model-viewer> official document: https://modelviewer.dev/docs/#entrydocs-loading-attributes-withCredentials

Implementation

final bool? withCredentials;