Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename allowable origins case to any (#2397)
- Loading branch information
1 parent
ce53199
commit 75ee9c8
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
Sources/Vapor/Deprecations/CORSMiddleware+AllowOriginSetting.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extension CORSMiddleware.AllowOriginSetting { | ||
@available(*, deprecated, renamed: "any") | ||
public static func whitelist(_ origins: [String]) -> Self { | ||
.any(origins) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters