I send an authorization request through a third-party library in the dropbox. After clicking the button in the browser, the dropbox requests via redirect_uri, which my application listens to. The format is as follows

[REDIRECT_URI]#access_token=ABCDEFG&token_type=bearer&uid=12345&state=[STATE] 

I use the HttpListener class, but after receiving the request, the httpListener.Request.Url property contains the address to the grid.

I tried, he always does that - shows the address to the lattice. Question: how to deal with it?

  • Are you sure that the URIs with the grid are not set by the script, and the content is not loaded via AJAX? Check it out. - VladD
  • @VladD I tried manually to request myself from the browser with a grid. It does not come - hinduCoder

1 answer 1

Directly - no way. The browser basically does not send the part after the grid - the fragment - to the server.

Indirectly, to give this uri request an intermediate page. On the script page, cut out the uri part after #, and send it to the server with another request.