Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
bf65675c
Commit
bf65675c
authored
Mar 08, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CORS] Firewall fix negation.
parent
27999e89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
API.hs
src/Gargantext/API.hs
+1
-5
Prelude.hs
src/Gargantext/Prelude.hs
+1
-1
No files found.
src/Gargantext/API.hs
View file @
bf65675c
...
...
@@ -101,7 +101,7 @@ fireWall req fw = do
let
hostOk
=
Just
(
encodeUtf8
"localhost:3000"
)
let
originOk
=
Just
(
encodeUtf8
"http://localhost:8008"
)
if
origin
==
originOk
&&
host
==
hostOk
||
unFireWall
fw
if
origin
==
originOk
&&
host
==
hostOk
||
(
not
$
unFireWall
fw
)
then
pure
True
else
pure
False
...
...
@@ -270,7 +270,3 @@ startGargantextMock port = do
run
port
application
src/Gargantext/Prelude.hs
View file @
bf65675c
...
...
@@ -25,7 +25,7 @@ import Protolude ( Bool(True, False), Int, Double, Integer
,
takeWhile
,
sqrt
,
undefined
,
identity
,
abs
,
maximum
,
minimum
,
return
,
snd
,
truncate
,
(
+
),
(
*
),
(
/
),
(
-
),
(
.
),
(
>=
),
(
$
),
(
**
),
(
^
),
(
<
),
(
>
),
(
==
),
(
<>
)
,
(
&&
),
(
||
)
,
(
&&
),
(
||
)
,
not
,
toS
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment