vite-plugin-html icon indicating copy to clipboard operation
vite-plugin-html copied to clipboard

CORS header

Open ilteoood opened this issue 3 years ago • 0 comments

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: image

When it is disabled, I receive these: image

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?

ilteoood avatar Mar 01 '22 15:03 ilteoood