Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/uploads/flags/wp-scripts.config.js.tar
Назад
var/www/xthruster/html/wp-content/plugins/optimole-wp/wp-scripts.config.js 0000644 00000001727 14721602246 0023157 0 ustar 00 // wp-scripts.config.js const defaultConfig = require( '@wordpress/scripts/config/webpack.config' ); module.exports = { ...defaultConfig, devServer: { ...defaultConfig.devServer, allowedHosts: [ 'all', '.test' ], headers: { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS', 'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization' }, host: '0.0.0.0', port: 8887, hot: true, https: true, client: { webSocketURL: 'wss://localhost:8887/ws', overlay: true }, setupMiddlewares: ( middlewares, devServer ) => { if ( ! devServer ) { throw new Error( 'webpack-dev-server is not defined' ); } // Add CORS headers to all responses devServer.app.use( ( req, res, next ) => { res.header( 'Access-Control-Allow-Origin', '*' ); next(); }); return middlewares; } }, watchOptions: { ignored: /node_modules/, aggregateTimeout: 300 } };
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка