1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

CORS support

This commit is contained in:
Julien Duponchelle 2015-07-02 19:12:55 +02:00
parent caf7af7ad5
commit 3ed95148b2

View File

@ -35,6 +35,7 @@ class Response(aiohttp.web.Response):
self._route = route
self._output_schema = output_schema
self._request = request
headers['Access-Control-Allow-Origin'] = '*'
headers['X-Route'] = self._route
headers['Server'] = "Python/{0[0]}.{0[1]} GNS3/{1}".format(sys.version_info, __version__)
super().__init__(headers=headers, **kwargs)