← Back to release summary

JavaScript Modules: Credentials mode defaults to "same-origin"

Category
Network / Connectivity
Type
New or changed feature
Status
Enabled by default (Chrome 72)
Intent stage
None

Summary

The default credentials mode for module script requests is changing from "omit" to "same-origin", providing credentials to same-origin module script requests and their descendant scripts (static & dynamic imports). The current behavior can be surprising in that it's misaligned with other high-level features like the Fetch API, and in the web platform's current architecture, causes a second server connection. This is undesirable for developers looking to reduce latency.

Standards & signals

View on chromestatus.com