casdoor/web/craco.config.js
Товарищ программист 5757021e87
fix: prohibit cross-origin access (#462)
2022-01-29 21:52:04 +08:00

26 lines
508 B
JavaScript

const CracoLessPlugin = require('craco-less');
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
}
},
},
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: { '@primary-color': 'rgb(45,120,213)' },
javascriptEnabled: true,
},
},
},
},
],
};