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

Merged
merged 2 commits into from
Jul 21, 2021

Commits on Jul 20, 2021

  1. Restore CORS on git smart http protocol

    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 20, 2021
    Configuration menu
    Copy the full SHA
    a5819d9 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Configuration menu
    Copy the full SHA
    01387af View commit details
    Browse the repository at this point in the history