Replies: 2 comments 4 replies
-
@MTroian94 Moving this to discussions since this is a feature request. Let me discuss this with the team and get back to you! |
Beta Was this translation helpful? Give feedback.
4 replies
-
I believe it should be possible to hide the version number to avoid potential issues mentioned by @mnahkies |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Link to the code that reproduces this issue
https://github.com/MTroian94/next-version-window
To Reproduce
Current vs. Expected behavior
Following the steps from the previous section, I expected to see the next version in
window.next
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64 Available memory (MB): 16384 Available CPU cores: 12 Binaries: Node: 20.9.0 npm: 10.1.0 Yarn: 1.22.19 pnpm: 9.1.2 Relevant Packages: next: 15.0.3-canary.9 // Latest available version is detected (15.0.3-canary.9). eslint-config-next: N/A react: 19.0.0-rc-66855b96-20241106 react-dom: 19.0.0-rc-66855b96-20241106 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
These discussions:
show how to hide the Next.js version by modifying the built code. Is it possible to hide the Next.js version using the configuration in the
next.config.js
file? SettingpoweredByHeader
to false is not enough.This is still a potential security issue for apps using Next.js, as attackers can see which Next.js version is used and potentially find exploits for that particular version.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions