aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-26 07:30:07 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-26 07:30:07 +0100
commit5755c9a0ef2d72549aa6eb281c6769c8c171421d (patch)
treef13317e4903ec7de43e6fb46b6181a5730c27016 /include
parent04b13311cedf90f57db5d53feea7349a008f628b (diff)
parentec0d348139403d7caba4ee4cbb99d893d8c741b8 (diff)
Merge branch 'master' of ssh://github.com/tech-server/tgmanage
Diffstat (limited to 'include')
-rwxr-xr-xinclude/nms/web.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/nms/web.pm b/include/nms/web.pm
index c9f7236..889e774 100755
--- a/include/nms/web.pm
+++ b/include/nms/web.pm
@@ -57,7 +57,7 @@ sub db_safe_quote {
# endpoints it is better to return no data than old data (e.g.: ping).
sub setwhen {
$now = "now()";
- my $window = '15m';
+ my $window = '8m';
my $offset = '0s';
if (@_ > 0) {
$window = $_[0];
@@ -86,6 +86,8 @@ sub finalize_output {
printcc;
print "Etag: $hash\n";
+ print "Access-Control-Allow-Origin: *\n";
+ print "Access-Control-Allow-Methods: HEAD, GET\n";
print "Content-Type: text/json; charset=utf-8\n\n";
print JSON::XS::encode_json(\%json);
print "\n";