kopia lustrzana https://github.com/simonw/datasette
rodzic
12f7e1dc56
commit
255e2611e5
1
app.py
1
app.py
|
@ -89,6 +89,7 @@ class BaseView(HTTPMethodView):
|
|||
data = self.data(request, name, hash, **kwargs)
|
||||
if as_json:
|
||||
r = response.json(data)
|
||||
r.headers['Access-Control-Allow-Origin'] = '*'
|
||||
else:
|
||||
r = jinja.render(
|
||||
self.template,
|
||||
|
|
Ładowanie…
Reference in New Issue