Skip to content

fix: set routeRules for nuxt-security#189

Closed
huang-julien wants to merge 1 commit intomainfrom
fix/nuxt-security-integration
Closed

fix: set routeRules for nuxt-security#189
huang-julien wants to merge 1 commit intomainfrom
fix/nuxt-security-integration

Conversation

@huang-julien
Copy link
Copy Markdown
Member

@huang-julien huang-julien commented Jan 13, 2026

🔗 Linked issue

fix #186

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

this PR disable XSS validation for the hydration endpoint when nuxt-security is used in the project

@huang-julien huang-julien requested a review from Baroshem January 13, 2026 21:26
@huang-julien huang-julien marked this pull request as ready for review January 13, 2026 21:26

nuxt.options.build.transpile.push(moduleName)

if (hasNuxtModule('nuxt-security')) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Shoukd this check be here? What I mean is that Nuxt Hints is an official module that now will have a if check for community module. Maybe we could to it the other way around?

If the user has Nuxt Security installed check there if official nuxt hints is isntalled and if so disable xss validator.

WDYT?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was thinking about that too. Let me open the PR on your side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FetchError: 400 on /__nuxt_hydration endpoint after updating dependencies

2 participants