Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore CORS on git smart http protocol (#16496) #16506

Merged
merged 2 commits into from
Jul 21, 2021

Commits on Jul 21, 2021

  1. Restore CORS on git smart http protocol (go-gitea#16496)

    Backport go-gitea#16496
    
    Unfortunately the chi changes have resulted in the CORS headers for the
    git smart http protocol going missing.
    
    This is mostly because the OPTIONS method is not being handled by
    httpBase anymore.
    
    This PR adds a GetOptions, PostOptions and Options methods to web
    handler to allow OPTIONS method requests to still reach the httpBase
    function.
    
    Fix go-gitea#16350
    Close go-gitea#16491
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    c5dfc4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4e6418 View commit details
    Browse the repository at this point in the history