vite-plugin-html
vite-plugin-html copied to clipboard
CORS header
I'm using this plugin (version 3.1.0) with the following configuration:
createHtmlPlugin({
minify: true,
entry: 'src/index.jsx',
template: 'public/index.html',
})
When it's enabled, I receive the following headers:

When it is disabled, I receive these:

I think that this is a plugin's bug: Access-Control-Allow-Origin should be always returned when server.cors is enabled.
What do you think? Is it normal?