NUXT_E2002

Navigation with dangerous protocol.

E2002

navigateTo() was given a URL using a dangerous protocol (javascript:, data:, vbscript:). Nuxt blocks these to prevent XSS. This almost always means unsanitized user input reached navigateTo().

Resolution

Validate and sanitize user-provided URLs before navigating. Allow only http:, https:, or relative paths.

Read more in Docs > API > Utils > Navigate To.
Was this helpful?