Creator3打包WebMobile 报错 Access to script at ‘chunks:///_virtual/xxxxx.ts‘ from origin ‘http://localhost:7456’ has been blocked by CORS

发布web版本后老是报这个错误:

Access to script at 'chunks:///_virtual/xxxxxxx.ts' from origin 'http://xxxxx:7456' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.

解决方案是:
勾选“擦除模块结构”就正常了