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

Parse URL When Ensuring CORS for Direct Uploads #46

Merged

Commits on Sep 10, 2019

  1. Parse URL When Ensuring CORS for Direct Uploads

    The `request.url` returns the full URL, with path included. This isn't
    valid for a CORS header, which needs just the scheme, host, and port if
    it's non-standard. Update the `DirectUpload.ensure_cors!` method to
    parse out those pieces of the URL and re-assemble it for the CORS
    header and ID.
    
    No changelog
    
    Fixes #19
    Tom Scott committed Sep 10, 2019
    Configuration menu
    Copy the full SHA
    e8cada3 View commit details
    Browse the repository at this point in the history