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