403Webshell
Server IP : 213.132.222.41  /  Your IP : 216.73.216.254
Web Server : Apache
System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64
User : thecovenant ( 10927)
PHP Version : 8.3.32
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/thecovenant.nl/httpdocs/new/wp-content/plugins/optimole-wp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/thecovenant.nl/httpdocs/new/wp-content/plugins/optimole-wp//wp-scripts.config.js
// 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
	}
};

Youez - 2016 - github.com/yon3zu
LinuXploit