Skip to content

Document loader.withCredentials for asset loading#1070

Open
mvaligursky wants to merge 1 commit into
mainfrom
mv-with-credentials-docs
Open

Document loader.withCredentials for asset loading#1070
mvaligursky wants to merge 1 commit into
mainfrom
mv-with-credentials-docs

Conversation

@mvaligursky

@mvaligursky mvaligursky commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

!!!!! MERGE WHEN ENGINE 2.21 IS RELEASED !!!!!

Documents the new ResourceLoader.withCredentials option for loading assets from an authenticated cross-origin host. Engine support: playcanvas/engine#8983.

Changes:

  • Adds a "Loading with Credentials" section to the Assets > Loading and Unloading manual page, alongside the existing "Configuring Retries" and "Limiting Concurrent Requests" sections.
  • Covers the global app.loader.withCredentials = true opt-in, the requirement to set it before assets load, and the server-side CORS requirements (non-wildcard Access-Control-Allow-Origin + Access-Control-Allow-Credentials: true).
  • Mirrored in the Japanese (ja) translation.

Note: the corresponding Editor project setting is tracked separately in playcanvas/editor#2132 and is intentionally not documented here until that UI ships.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant