in fact, the Lite server is just a browser synchronization shell, if you can check documents from https://www.browsersync.io/docs/options , you can find the cors configuration, and since lite server support uses the configuration file to parameter settings, so all you have to do is just install the configuration file for the Lite server, you can choose bs-config.js or bs-config.json if we use the simplest bs-config.json, contente:
{ "cors": true }
then you immediately launch the Lite server, you will see:
Sync browser configuration
{ injectChanges: false, files: [ './**/*.{html,htm,css,js}' ], watchOptions: { ignored: 'node_modules' }, server: { baseDir: './', middleware: [ [Function], [Function] ] }, cors: true }
[BS] Access URLs:
Local: http:
which means cors is working.
source share