Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
9921dd27
Commit
9921dd27
authored
Mar 08, 2021
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[roleStageDiscovery] added CORS support
parent
0c61eb4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
main.py
src/data-hub/role-stage-discovery-microservice/app/main.py
+2
-0
requirements.txt
...ub/role-stage-discovery-microservice/app/requirements.txt
+1
-0
No files found.
src/data-hub/role-stage-discovery-microservice/app/main.py
View file @
9921dd27
...
@@ -18,9 +18,11 @@ from pathlib import Path
...
@@ -18,9 +18,11 @@ from pathlib import Path
from
env_info
import
is_running_locally
,
get_resources_path
from
env_info
import
is_running_locally
,
get_resources_path
from
flask
import
request
from
flask
import
request
from
flask
import
redirect
from
flask
import
redirect
from
flask_cors
import
CORS
# load swagger config
# load swagger config
app
=
connexion
.
App
(
__name__
,
specification_dir
=
'configs/'
)
app
=
connexion
.
App
(
__name__
,
specification_dir
=
'configs/'
)
CORS
(
app
.
app
)
@
app
.
app
.
before_request
@
app
.
app
.
before_request
def
before_request
():
def
before_request
():
...
...
src/data-hub/role-stage-discovery-microservice/app/requirements.txt
View file @
9921dd27
...
@@ -14,6 +14,7 @@ cycler==0.10.0
...
@@ -14,6 +14,7 @@ cycler==0.10.0
decorator==4.4.1
decorator==4.4.1
Deprecated==1.2.7
Deprecated==1.2.7
Flask==1.1.1
Flask==1.1.1
Flask-Cors==3.0.10
idna==2.8
idna==2.8
importlib-metadata==1.5.0
importlib-metadata==1.5.0
inflection==0.3.1
inflection==0.3.1
...
...
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