This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
nielsperetzke
/
healthchecks
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
32
Wiki
Activity
Browse Source
CORS header for ping call
pull/7/head
Pēteris Caune
9 years ago
parent
2750729bc9
commit
17b87c093f
1 changed files
with
3 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
hc/api/views.py
+ 3
- 1
hc/api/views.py
View File
@ -19,7 +19,9 @@ def ping(request, code):
check
.
save
(
)
check
.
save
(
)
return
HttpResponse
(
"
OK
"
)
response
=
HttpResponse
(
"
OK
"
)
response
[
"
Access-Control-Allow-Origin
"
]
=
"
*
"
return
response
def
status
(
request
,
code
)
:
def
status
(
request
,
code
)
:
Write
Preview
Loading…
Cancel
Save