Skip to content

a potentially dangerous request.cookies value was detected from the client #638

Closed

Description

@itg-assistant

Shawn Ramirez asked 2017-02-17 17:07:42 UTC

We have a site that has a number of web applications in it, each a different folder that has been "converted to app" in the IIS interface.

The main site creates a cookie named hsdCP_User, when the user navigates from the main site (ex: apps.mysite.com) to the apps.mysite.com/tickets , I get the error in the title.

If I remove the cookie, wiseJ works fine.

Is it possible to run my wiseJ in as an app within a main site that uses cookies?

Shawn

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-02-17 17:38:19 UTC

    Hi Shawn,

    Wisej only adds 1 cookie with the session id using a guid string. This error seems to be related to the main site configuration and probably other cookies. See: https://forums.asp.net/t/1930540.aspx?A+potentially+dangerous+Request+Cookies+value+was+detected+from+the+client

    Wisej can also work without cookies, see the cookieless sessing in the config section.

    HTH

    Best,

    Luca

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Shawn Ramirez answered 2017-02-17 18:42:50 UTC

    Thank you for your help, it pointed me in the right direction.

    I had a cookie that had a small amount of XML in it.  This made it dangerous I guess.  I took that value out and all is good.

    Thanks,

    Shawn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions