public class CorsRegistry extends ObjectSE
CorsConfiguration
マッピングの登録を支援します。コンストラクターと説明 |
---|
CorsRegistry() |
修飾子と型 | メソッドと説明 |
---|---|
CorsRegistration | addMapping(StringSE pathPattern) 指定されたパスパターンのクロスオリジンリクエスト処理を有効にします。 |
protected MapSE<StringSE, CorsConfiguration> | getCorsConfigurations() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public CorsRegistration addMapping(StringSE pathPattern)
正確なパスマッピング URI("/admin"
など)および Ant スタイルのパスパターン("/admin/**"
など)がサポートされています。
次のデフォルトが CorsRegistration
に適用されます。
GET
、HEAD
、POST
を許可します。protected MapSE<StringSE,CorsConfiguration> getCorsConfigurations()