Как удалить следующую версию JS от WappalyzerJavascript

Форум по Javascript
Ответить
Anonymous
 Как удалить следующую версию JS от Wappalyzer

Сообщение Anonymous »

У меня есть следующее приложение JS Я хочу удалить следующую версию JS от Wappalyzer < /p>
Вещи, которые я попробовал < /p>
в моем следующем.config.js < /p>

Код: Выделить всё

/** @type {import('next').NextConfig} */

const nextConfig = {
reactStrictMode: true,
swcMinify: true,
output: "standalone",
images: {
domains: [
"smc-static-website-artifact-uat.s3.amazonaws.com", // Add this domain
// Add any other domains you need here
],
},
experimental: {
missingSuspenseWithCSRBailout: false,
},
eslint: {
// This allows production builds to successfully complete even if there are ESLint errors.
ignoreDuringBuilds: true,
},
typescript: {
// Ignore TypeScript errors during build
ignoreBuildErrors: true,
},
reactStrictMode: true,
poweredByHeader: false,
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: 'X-Powered-By',
value: '',
},
],
},
];
},
compiler: {
removeConsole: {
exclude: ["error"], // Keep only console.error
},
},
};

module.exports = nextConfig;
< /code>
В заголовке я добавил клавишу в виде x-power-by и value '' < /p>
Еще одна вещь, которую я сделал,-это
, изменяя следующую. config.js < /p>
/** @type {import('next').NextConfig} */

const webpack = require("webpack");

const nextConfig = {
reactStrictMode: true,
swcMinify: true,
output: "standalone",
images: {
domains: [
"smc-static-website-artifact-uat.s3.amazonaws.com",
],
},
experimental: {
missingSuspenseWithCSRBailout: false,
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
poweredByHeader: false,
async headers() {
return [
{
source: "/:path*",
headers: [
{ key: "Server", value: "" },
{ key: "X-Frame-Options", value: "DENY" },
{
key: "Set-Cookie",
value: "cookie=value; HttpOnly=true; Secure=true; SameSite=Strict",
},
{ key: "Allow", value: "GET, POST" },
{ key: "Access-Control-Allow-Methods", value: "GET, POST" },
{ key: "X-HTTP-Method-Override", value: "GET, POST" },
{ key: "X-Content-Type-Options", value: "nosniff" },
{ key: "X-XSS-Protection", value: "1; mode=block" },
{
key: "Strict-Transport-Security",
value: "max-age=31536000; includeSubDomains",
},
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
{ key: "X-Powered-By", value: "" },
{
key: "Cache-Control",
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
},
],
},
];
},
compiler: {
removeConsole: {
exclude: ["error"],
},
},

// ✅ Add webpack customization to remove version info
webpack(config, { isServer }) {
if (!isServer) {
config.plugins.push(
new webpack.NormalModuleReplacementPlugin(
/next\/dist\/client\/index\.js/,
require.resolve("./remove-next-version.js")
)
);
}
return config;
},
};

module.exports = nextConfig;
< /code>
Создано remove-next-version.js в корне приложения < /p>
module.exports = {
version: '',
appDir: false,
};
Все еще в Wapplyzer. Следующая версия JS виден
Я хочу, чтобы следующая версия JS была пустой



Подробнее здесь: https://stackoverflow.com/questions/796 ... wappalyzer
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Javascript»