Akryum / meteor-vite

MIT License
33 stars 16 forks source link

not work on server #36

Open SvenWangChina opened 1 year ago

SvenWangChina commented 1 year ago

My demo worked fine my macOS, but got follow error when run ubuntu server:

Access to script at 'http://localhost:5173/imports/startup/client/index.ts' from origin 'http://x.x.x.x:6009' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address spacelocal.

The example run server (not build) also got follow error, it work fine with build:

Access to script at 'http://localhost:5173/imports/ui/main.ts' from origin 'http://x.x.x.x:6009' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address spacelocal.