A local server is server on your own machine.
There is a lot of ready-made software solution or even as a plugin for some IDE (like VSCode or other…)
You can also easily create one with a little python script or with node.js.
it can avoid having CORS problems