fix: prohibit cross-origin access (#462)

This commit is contained in:
Товарищ программист
2022-01-29 21:52:04 +08:00
committed by GitHub
parent 259a4e1307
commit 5757021e87
3 changed files with 12 additions and 13 deletions

View File

@ -1,6 +1,14 @@
const CracoLessPlugin = require('craco-less');
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
}
},
},
plugins: [
{
plugin: CracoLessPlugin,