
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@darcytech/html-webpack-cross-origin-plugin
Advanced tools
@darcytech/html-webpack-cross-origin-pluginhtml-webpack-cross-origin-plugin 是一款扩展至 html-webpack-plugin 的插件, 作用是在构建时往生成的 script 和 link 标签注入 crossOrigin 属性。
入参:'anonymous' | 'use-credentials'
const HtmlWebpackCrossOriginPlugin = require('@darcytech/html-webpack-cross-origin-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
{
plugins: [new HtmlWebpackPlugin(), new HtmlWebpackCrossOriginPlugin('anonymous')];
}
FAQs
构建时往 script 和 link 标签注入 crossOrigin属性
We found that @darcytech/html-webpack-cross-origin-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.