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
3966f9e5
Commit
3966f9e5
authored
Jun 24, 2021
by
Manuel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/cors' into develop
parents
393ca926
abb6aec5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
main.py
...participation-hub/business-logic-microservice/app/main.py
+2
-0
requirements.txt
...tion-hub/business-logic-microservice/app/requirements.txt
+1
-0
main.py
...ansaction-hub-in/trace-retrieval-microservice/app/main.py
+2
-0
requirements.txt
...-hub-in/trace-retrieval-microservice/app/requirements.txt
+1
-0
No files found.
src/participation-hub/business-logic-microservice/app/main.py
View file @
3966f9e5
...
...
@@ -14,8 +14,10 @@ from security import swagger_util
from
env_info
import
is_running_locally
,
get_resources_path
from
flask
import
request
from
flask
import
redirect
from
flask_cors
import
CORS
app
=
connexion
.
App
(
__name__
,
specification_dir
=
'configs/'
)
CORS
(
app
.
app
)
from
db.entities.layer_adapter
import
LayerAdapter
...
...
src/participation-hub/business-logic-microservice/app/requirements.txt
View file @
3966f9e5
...
...
@@ -11,6 +11,7 @@ connexion==2.7.0
coverage==5.3.1
cryptography==3.1
Flask==1.1.2
Flask-Cors==3.0.10
idna==2.10
importlib-metadata==1.7.0
inflection==0.5.0
...
...
src/transaction-hub-in/trace-retrieval-microservice/app/main.py
View file @
3966f9e5
...
...
@@ -25,6 +25,7 @@ from messaging.ReconnectingMessageManager import ReconnectingMessageManager
from
messaging.rest_fetcher
import
RestFetcher
from
flask
import
request
from
flask
import
redirect
from
flask_cors
import
CORS
# init message handler
message_handler
:
MessageHandler
=
None
...
...
@@ -33,6 +34,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/transaction-hub-in/trace-retrieval-microservice/app/requirements.txt
View file @
3966f9e5
...
...
@@ -11,6 +11,7 @@ coverage==5.3.1
cryptography==3.1
Deprecated==1.2.10
Flask==1.1.2
Flask-Cors==3.0.10
idna==2.10
importlib-metadata==1.7.0
inflection==0.5.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