Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Gargantext.API.Admin.Settings.CORS
Synopsis
- newtype CORSOrigin = CORSOrigin {
- _CORSOrigin :: Text
- data CORSSettings = CORSSettings {}
- corsOriginCodec :: TomlBiMap CORSOrigin AnyValue
- corsSettingsCodec :: TomlCodec CORSSettings
- loadGargCorsSettings :: IO CORSSettings
- corsUseOriginsForHosts :: Lens' CORSSettings Bool
- corsAllowedOrigins :: Lens' CORSSettings [CORSOrigin]
- corsAllowedHosts :: Lens' CORSSettings [CORSOrigin]
Documentation
newtype CORSOrigin #
Constructors
CORSOrigin | |
Fields
|
Instances
IsString CORSOrigin # | |
Defined in Gargantext.API.Admin.Settings.CORS Methods fromString :: String -> CORSOrigin # | |
Show CORSOrigin # | |
Defined in Gargantext.API.Admin.Settings.CORS Methods showsPrec :: Int -> CORSOrigin -> ShowS # show :: CORSOrigin -> String # showList :: [CORSOrigin] -> ShowS # | |
Eq CORSOrigin # | |
Defined in Gargantext.API.Admin.Settings.CORS |
data CORSSettings #
Constructors
CORSSettings | |
Fields
|
Instances
Show CORSSettings # | |
Defined in Gargantext.API.Admin.Settings.CORS Methods showsPrec :: Int -> CORSSettings -> ShowS # show :: CORSSettings -> String # showList :: [CORSSettings] -> ShowS # | |
Eq CORSSettings # | |
Defined in Gargantext.API.Admin.Settings.CORS |
loadGargCorsSettings :: IO CORSSettings #
Loads the CORSSettings
from the toml
file.