Skip to content
Snippets Groups Projects
Commit c8d36d55 authored by David Hoese's avatar David Hoese
Browse files

Add CORS header to times CGI script

parent d4ca053e
No related branches found
No related tags found
No related merge requests found
......@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment