Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gin-contrib/cors
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.0
Choose a base ref
...
head repository: gin-contrib/cors
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.0
Choose a head ref
  • 17 commits
  • 9 files changed
  • 4 contributors

Commits on Nov 28, 2023

  1. chore: update dependencies to latest versions

    - Update `github.com/bytedance/sonic` from version `v1.10.1` to `v1.10.2`
    - Update `github.com/chenzhuoyu/iasm` from version `v0.9.0` to `v0.9.1`
    - Update `github.com/gabriel-vasile/mimetype` from version `v1.4.2` to `v1.4.3`
    - Update `github.com/go-playground/validator/v10` from version `v10.15.5` to `v10.16.0`
    - Update `github.com/klauspost/cpuid/v2` from version `v2.2.5` to `v2.2.6`
    - Update `github.com/mattn/go-isatty` from version `v0.0.19` to `v0.0.20`
    - Update `golang.org/x/arch` from version `v0.5.0` to `v0.6.0`
    - Update `golang.org/x/crypto` from version `v0.14.0` to `v0.16.0`
    - Update `golang.org/x/net` from version `v0.16.0` to `v0.19.0`
    - Update `golang.org/x/sys` from version `v0.13.0` to `v0.
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    7d356c2 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. chore: update version of actions/setup-go in GitHub workflows

    - Update the version of `actions/setup-go` from v4 to v5 in the `.github/workflows/go.yml` file
    - Update the version of `actions/setup-go` from v4 to v5 in the `.github/workflows/goreleaser.yml` file
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    8263fce View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2023

  1. ci: update GitHub Actions to Version 3

    - Update the github action to use version 3 instead of version 2
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Dec 30, 2023
    Configuration menu
    Copy the full SHA
    0e993b7 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. chore: update GitHub actions to latest versions

    - Update the CodeQL action from version 2 to version 3 in `.github/workflows/codeql.yml`
    - Update the cache action from version 3 to version 4 in `.github/workflows/go.yml`
    
    Signed-off-by: appleboy <[email protected]>
    appleboy committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    f41df75 View commit details
    Browse the repository at this point in the history
  2. chore: update third-party dependencies

    - Update `github.com/go-playground/validator/v10` from version `v10.16.0` to `v10.17.0`
    - Update `github.com/leodido/go-urn` from version `v1.2.4` to `v1.3.0`
    - Update `github.com/pelletier/go-toml/v2` from version `v2.1.0` to `v2.1.1`
    - Update `github.com/ugorji/go/codec` from version `v1.2.11` to `v1.2.12`
    - Update `golang.org/x/arch` from version `v0.6.0` to `v0.7.0`
    - Update `golang.org/x/crypto` from version `v0.16.0` to `v0.18.0`
    - Update `golang.org/x/net` from version `v0.19.0` to `v0.20.0`
    - Update `golang.org/x/sys` from version `v0.15.0` to `v0.16.0`
    - Update `google.golang.org/protobuf` from version `v1.31.0` to `v1.32.0`
    
    Signed-off-by: appleboy <[email protected]>
    appleboy committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    5da0aee View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. ci: enhance testing matrix and tolerance limits

    - Add Go version `1.22` to the GitHub Actions workflow testing matrix
    
    Signed-off-by: appleboy <[email protected]>
    appleboy committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    fcbd06f View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. test: improve CORS wildcard handling and testing (#144)

    - Add two new test functions in `cors_test.go` for parsing wildcard rules: one without wildcards and one with invalid wildcards
    - Ensure no wildcard rules are returned when `AllowWildcard` is set to false
    - Verify that parsing invalid wildcard rules triggers a panic
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    85bf9fb View commit details
    Browse the repository at this point in the history
  2. chore: update dependencies to latest versions

    - Update `github.com/bytedance/sonic` dependency from `v1.10.2` to `v1.11.2`
    - Upgrade `github.com/go-playground/validator/v10` from `v10.17.0` to `v10.19.0`
    - Increment `github.com/klauspost/cpuid/v2` version from `v2.2.6` to `v2.2.7`
    - Bump `github.com/leodido/go-urn` from `v1.3.0` to `v1.4.0`
    - Update `golang.org/x/crypto` from `v0.18.0` to `v0.21.0`
    - Upgrade `golang.org/x/net` from `v0.20.0` to `v0.22.0`
    - Update `golang.org/x/sys` from `v0.16.0` to `v0.18.0`
    - Bump `google.golang.org/protobuf` from `v1.32.0` to `v1.33.0`
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    2451987 View commit details
    Browse the repository at this point in the history
  3. ci: refactor CI workflows and improve tests

    - Update GitHub Actions workflows to determine Go version from `go.mod` and check for the latest version.
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    f08c1bc View commit details
    Browse the repository at this point in the history
  4. ci: refactor GitHub Actions workflows

    - Update the GitHub Actions workflow to use version 4 of the golangci-lint-action
    - Update the GitHub Actions workflow to use version 4 of the codecov-action
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    30792dc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    27b723a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eac6c48 View commit details
    Browse the repository at this point in the history
  7. test: refactor tests and update CI configurations

    - Change the CORS test to only check for an error instead of matching the exact error message
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    d5002f2 View commit details
    Browse the repository at this point in the history
  8. test(cors): enhance CORS wildcard handling tests (#145)

    - Import the `reflect` package in `cors_test.go`
    - Add new test cases for parsing wildcard rules in CORS configuration
    - Implement tests to check for panic on multiple wildcards and validate expected results for various wildcard scenarios
    
    ref: #106
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy authored Mar 6, 2024
    1 Configuration menu
    Copy the full SHA
    90a7c66 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2024

  1. fix: improve error handling and test robustness

    - Add error handling to the `router.Run()` call in `example.go` with a panic if an error occurs
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    7f30a1f View commit details
    Browse the repository at this point in the history
  2. chore(cors): Allow a custom validation function which receives the fu…

    …ll gin context (#140)
    
    * Allow a origin validation function with context
    
    * Revert "Allow a origin validation function with context"
    
    This reverts commit 82827c2.
    
    * Allow origin validation function which receives the full request context
    
    * fix logic in conditional
    
    * add test, fix logic
    
    * slightly re-work to pass linter
    
    * update comments
    
    * restructure to shorten line lengths to pass linter
    
    * remove punctuation at the end of error string
    
    * Add multi-group preflight test
    
    * remove comment
    dbhoot authored Mar 10, 2024
    Configuration menu
    Copy the full SHA
    9d49f16 View commit details
    Browse the repository at this point in the history
  3. refactor: refactor request handling and improve CORS checks

    - Refactor `performRequestWithHeaders` function signature for better readability
    - Standardize the string comparison order in CORS origin checks
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    4447aeb View commit details
    Browse the repository at this point in the history
Loading