| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Hasura.Server.Cors
Description
CORS (Cross Origin Resource Sharing) related configuration
Documentation
data CorsConfig Source #
Constructors
| CCAllowAll | |
| CCAllowedOrigins Domains | |
| CCDisabled Bool |
Instances
| FromJSON CorsConfig Source # | |
Defined in Hasura.Server.Cors Methods parseJSON :: Value -> Parser CorsConfig Source # parseJSONList :: Value -> Parser [CorsConfig] Source # | |
| ToJSON CorsConfig Source # | |
Defined in Hasura.Server.Cors Methods toJSON :: CorsConfig -> Value Source # toEncoding :: CorsConfig -> Encoding Source # toJSONList :: [CorsConfig] -> Value Source # toEncodingList :: [CorsConfig] -> Encoding Source # | |
| Show CorsConfig Source # | |
Defined in Hasura.Server.Cors Methods showsPrec :: Int -> CorsConfig -> ShowS # show :: CorsConfig -> String # showList :: [CorsConfig] -> ShowS # | |
| Eq CorsConfig Source # | |
Defined in Hasura.Server.Cors | |
| FromEnv CorsConfig Source # | |
Defined in Hasura.Server.Init.Env | |
isCorsDisabled :: CorsConfig -> Bool Source #
data CorsPolicy Source #
Constructors
| CorsPolicy | |
Instances
| Show CorsPolicy Source # | |
Defined in Hasura.Server.Cors Methods showsPrec :: Int -> CorsPolicy -> ShowS # show :: CorsPolicy -> String # showList :: [CorsPolicy] -> ShowS # | |
| Eq CorsPolicy Source # | |
Defined in Hasura.Server.Cors | |