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
03d5379c
Commit
03d5379c
authored
Mar 15, 2021
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[semanticLinking] added CORS support
parent
9921dd27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
main.py
src/data-hub/semantic-linking-microservice/app/main.py
+2
-0
requirements.txt
...ta-hub/semantic-linking-microservice/app/requirements.txt
+1
-0
No files found.
src/data-hub/semantic-linking-microservice/app/main.py
View file @
03d5379c
...
...
@@ -20,6 +20,7 @@ from env_info import is_running_locally, get_resources_path
from
messaging.ReconnectingMessageManager
import
ReconnectingMessageManager
from
messaging.MessageHandler
import
MessageHandler
from
flask
import
request
from
flask_cors
import
CORS
from
flask
import
redirect
# init message handler
...
...
@@ -30,6 +31,7 @@ def message_received_callback(channel, method, properties, body):
# load swagger config
app
=
connexion
.
App
(
__name__
,
specification_dir
=
'configs/'
)
CORS
(
app
.
app
)
@
app
.
app
.
before_request
def
before_request
():
...
...
src/data-hub/semantic-linking-microservice/app/requirements.txt
View file @
03d5379c
...
...
@@ -10,6 +10,7 @@ connexion==2.7.0
coverage==5.3.1
cryptography==3.1
Flask==1.1.2
Flask-Cors==3.0.10
idna==2.9
importlib-metadata==1.6.1
inflection==0.5.0
...
...
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