400 Bad Request Request Header Or Cookie Too Large Microsoft-Azure-Application-Gateway/v2

Admin new 0 Reputation points
2026-11-25T07:44:53.3166667+00:00

an error occurs while downloading any content search from pruview.

400 Bad Request

Request Header Or Cookie Too Large


Microsoft-Azure-Application-Gateway/v2

Microsoft Security | Microsoft Purview
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-25T07:45:44.91+00:00

    Delete the stored cookies for the affected Microsoft Purview site, sign in again, and retry the download because the gateway is rejecting an oversized request header or cookie.

    Clear only the affected site data

    In Microsoft Edge:

    1. Close other Purview tabs, ensuring no export preparation is still in progress.
    2. Open Settings and more (…) → Settings → Privacy, search, and services → Cookies → See all cookies and site data.
    3. Search for the affected Purview site, such as purview.microsoft.com.
    4. Expand its entry and select Delete.
    5. Reopen the Purview portal, sign in, and retry the download.

    Microsoft recommends site-specific deletion rather than clearing all cookies; deleting cookies signs you out of the affected site.^1^

    If the browser or device is organization-managed, ask IT to identify the affected site data before deleting cookies across Microsoft domains, because authentication data can be shared among Microsoft 365 services.

    Purview eDiscovery downloads require first-party and third-party cookies for the applicable download sites. The regional service can include:

    • apc.proxyservice.ediscovery.svc.cloud.microsoft
    • nam.proxyservice.ediscovery.svc.cloud.microsoft

    Allow cookies for the relevant Purview and regional download sites, then start the download again from:

    Microsoft Purview portal → eDiscovery → Cases → select the case → Searches → select the search → Export

    Monitor and download the resulting package from Process manager.^2^

    Avoid globally disabling browser privacy protections. Use site-specific exceptions where your organization’s policy permits them.

    If the error remains

    1. Test another browser profile or browser.
      A successful download there indicates that the original profile still has problematic site data or an extension modifying the request.
    2. Test another network, such as a mobile hotspot.
      Purview documentation identifies proxies, VPNs, firewalls, Zscaler, Microsoft Defender for Endpoint, and other security inspection products as possible sources of download interference. Required Purview export and Azure Storage endpoints must be allowed.^2^
    3. If another network succeeds, have the network team allow the Purview export endpoints and exclude the download flow from third-party inspection where required.
    4. If every user and network fails, capture:
      • Timestamp and time zone
      • Purview case, search, and export names
      • Browser and version
      • Whether another profile/network succeeds
      • The failed request from browser Developer tools → Network
      • Correlation or request ID, if displayed
      Developer tools can reveal whether a specific request header or the combined headers are unusually large.^3^

    Then open a Microsoft Support case. Microsoft’s eDiscovery troubleshooting guidance directs unresolved search or export issues to Support and recommends collecting the relevant eDiscovery diagnostic information.^4^

    Do not modify IIS registry header limits: the response identifies Azure Application Gateway v2, not an IIS server under your control.


    References

    1. Manage cookies in Microsoft Edge: View, allow, block, delete and use | Microsoft Support
    2. Export search results in eDiscovery
    3. WAF is returning 400 Bad Request - Request too long - Microsoft Q&A
    4. Resolve search errors in eDiscovery
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.