graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Server.Cors

Description

CORS (Cross Origin Resource Sharing) related configuration

Synopsis

Documentation

data DomainParts Source #

Constructors

DomainParts 

Fields

data Domains Source #

Constructors

Domains 

Fields

Instances

Instances details
Eq Domains Source # 
Instance details

Defined in Hasura.Server.Cors

Methods

(==) :: Domains -> Domains -> Bool #

(/=) :: Domains -> Domains -> Bool #

Show Domains Source # 
Instance details

Defined in Hasura.Server.Cors

FromJSON Domains Source # 
Instance details

Defined in Hasura.Server.Cors

Methods

parseJSON :: Value -> Parser Domains

parseJSONList :: Value -> Parser [Domains]

ToJSON Domains Source # 
Instance details

Defined in Hasura.Server.Cors

Methods

toJSON :: Domains -> Value

toEncoding :: Domains -> Encoding

toJSONList :: [Domains] -> Value

toEncodingList :: [Domains] -> Encoding

data CorsConfig Source #

Instances

Instances details
Eq CorsConfig Source # 
Instance details

Defined in Hasura.Server.Cors

Show CorsConfig Source # 
Instance details

Defined in Hasura.Server.Cors

FromJSON CorsConfig Source # 
Instance details

Defined in Hasura.Server.Cors

Methods

parseJSON :: Value -> Parser CorsConfig

parseJSONList :: Value -> Parser [CorsConfig]

ToJSON CorsConfig Source # 
Instance details

Defined in Hasura.Server.Cors

Methods

toJSON :: CorsConfig -> Value

toEncoding :: CorsConfig -> Encoding

toJSONList :: [CorsConfig] -> Value

toEncodingList :: [CorsConfig] -> Encoding

FromEnv CorsConfig Source # 
Instance details

Defined in Hasura.Server.Init.Env

data CorsPolicy Source #

Constructors

CorsPolicy 

Fields

Instances

Instances details
Eq CorsPolicy Source # 
Instance details

Defined in Hasura.Server.Cors

Show CorsPolicy Source # 
Instance details

Defined in Hasura.Server.Cors

runParser :: Parser a -> Text -> Either String a Source #

Parsers for wildcard domains

domainParser :: Maybe (Parser Text) -> Parser DomainParts Source #