mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 19:54:47 +00:00
account for icon types
This commit is contained in:
committed by
Keagan McClelland
parent
06a0fb0d96
commit
9fe0bba851
@@ -118,6 +118,7 @@ makeApplication foundation = do
|
||||
|
||||
dynamicCorsResourcePolicy :: Request -> Maybe CorsResourcePolicy
|
||||
dynamicCorsResourcePolicy req = Just . policy . lookup hOrigin $ requestHeaders req
|
||||
$logInfo $ show $ requestHeaders req
|
||||
where
|
||||
policy o = simpleCorsResourcePolicy
|
||||
{ corsOrigins = (\o' -> ([o'], True)) <$> o
|
||||
|
||||
Reference in New Issue
Block a user