Repository navigation
Changed
-
BREAKING (security) Files without inline
content,extends, and
cdnBaseUrlare no longer allowed in theconfigproperty of
<playground-ide>and<playground-project>, so that settingconfigdoes
not fetch project files or other manifests, or change the CDN. The type of
the property is nowProjectConfig, which does not have them. If they are
set anyway, they are dropped with a console warning: such files and any
files inherited throughextendswill be missing from the project, and the
CDN falls back to the element'scdnBaseUrl, or to unpkg.com.Previously, a config from an untrusted source (e.g. a shared URL) could make
the host page fetch arbitrary URLs with the user's credentials and expose the
responses to code running in the preview.To migrate, load manifests that rely on fetched files or
extendswith
project-src, and set the CDN with thecdnBaseUrlproperty or
cdn-base-urlattribute. Manifests loaded withproject-srcare unchanged. -
POTENTIALLY BREAKING (security) Typings for modules in an import map are
now fetched without credentials (e.g. cookies). Otherwise an import map from
an untrusted config could make the host page send authenticated requests to
URLs of its choosing. Typings that can only be fetched with credentials will
no longer load.