# navigate-to (/en/docs/web-security/policies/content-security-policy/directives/navigate-to)



The `navigate-to` Content Security Policy (CSP) directive would have restricted
the targets a page could navigate to, through links, form submissions, and
script-driven navigation. It was removed from the CSP specification in September
2022 and never shipped in any browser.

<Callout type="error" title="Removed">
  `navigate-to` was removed from the CSP specification in September 2022 because the working group never settled how it should handle redirects and cross-origin navigation. It only ever existed behind development flags in Chrome and Firefox and never shipped to users. There is no replacement. Remove it from your policy; it has no effect in any browser.
</Callout>

## What you should do instead [#what-you-should-do-instead]

There is no replacement for restricting navigation targets in general. The
closest surviving control is
[`form-action`](/en/docs/web-security/policies/content-security-policy/directives/form-action),
which restricts where forms may submit, but nothing in CSP governs where a link
or a script may navigate the page. Delete `navigate-to` from any policy that
carries it. Its companion keyword `'unsafe-allow-redirects'` remains in the spec
grammar with no functional definition, so it should go too; see the
[CSP keyword values](/en/docs/web-security/policies/content-security-policy/values/csp-keywords)
page for the keywords that do work.

## Why it was removed [#why-it-was-removed]

`navigate-to` raised unresolved questions about redirects and cross-origin
navigation that the working group never settled, so the directive was dropped
from the specification in September 2022. It had only ever been implemented
behind development flags in Chrome and Firefox and never reached users in
either browser.

## Browser support [#browser-support]

No browser supports `navigate-to`. It existed only behind development flags in
Chrome and Firefox and never shipped. Safari never implemented it.

## See also [#see-also]

* [form-action](/en/docs/web-security/policies/content-security-policy/directives/form-action), the surviving navigation-adjacent directive
* [Directives index](/en/docs/web-security/policies/content-security-policy/introduction/csp-directives)
* [Evaluate a policy](/tools/csp-evaluator) with the CSP evaluator

## Sources [#sources]

* [W3C webappsec-csp, issue removing navigate-to](https://github.com/w3c/webappsec-csp/issues/608)
* [content-security-policy.com, navigate-to](https://content-security-policy.com/navigate-to/)
