Response.Redirect with POST instead of Get?

后端 未结 14 1211
离开以前
离开以前 2020-11-22 04:04

We have the requirement to take a form submission and save some data, then redirect the user to a page offsite, but in redirecting, we need to \"submit\" a form with POST, n

14条回答
  •  离开以前
    2020-11-22 04:16

    Thought it might interesting to share that heroku does this with it's SSO to Add-on providers

    An example of how it works can be seen in the source to the "kensa" tool:

    https://github.com/heroku/kensa/blob/d4a56d50dcbebc2d26a4950081acda988937ee10/lib/heroku/kensa/post_proxy.rb

    And can be seen in practice if you turn of javascript. Example page source:

    
    
      
        
        Heroku Add-ons SSO
      
    
      
        

提交回复
热议问题