diff --git a/mapserver/cgi-bin/layer_times.py b/mapserver/cgi-bin/layer_times.py
index 68f0757acd5df992cadda424e36f10e3c8a1c368..8666f0bf65e2d060afb56c9d6a89c8556f090887 100755
--- a/mapserver/cgi-bin/layer_times.py
+++ b/mapserver/cgi-bin/layer_times.py
@@ -9,5 +9,6 @@ with fiona.open(layer, 'r') as shp_file:
     times = [x['properties']['time'] for x in shp_file]
 
 print("Content-Type: application/json")
+print("Access-Control-Allow-Origin: *")
 print()  # blank line, end of headers
 print(json.dumps(times))