Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
warpapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
warpapi
Commits
9a297478
Commit
9a297478
authored
3 years ago
by
Christian Elberfeld
Browse files
Options
Downloads
Patches
Plain Diff
cors header setzen
parent
8d56baf4
No related branches found
Branches containing commit
Tags
0.10
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
warpapi/warpapi.py
+8
-1
8 additions, 1 deletion
warpapi/warpapi.py
with
8 additions
and
1 deletion
warpapi/warpapi.py
+
8
−
1
View file @
9a297478
...
...
@@ -53,7 +53,14 @@ def handle_mqtt_message(client, userdata, message):
app
.
logger
.
info
(
data
)
zone_door_status
=
message
.
payload
.
decode
()
app
.
logger
.
info
(
"
zone_door_status =
"
+
zone_door_status
)
# CORS Header setzen
@app.after_request
def
after_request
(
response
):
header
=
response
.
headers
header
[
'
Access-Control-Allow-Origin
'
]
=
'
*
'
return
response
# Startseite
@app.route
(
'
/
'
)
def
view_index
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment