Workers, webpack and cors

we also find this problem in vite project.