summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
-rw-r--r--indoteknik_api/controllers/controller.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py
index c02f6b60..390994c4 100644
--- a/indoteknik_api/controllers/controller.py
+++ b/indoteknik_api/controllers/controller.py
@@ -50,7 +50,10 @@ class Controller(http.Controller):
response.update({'result': data})
response = json.dumps(response)
- return request.make_response(response, [('Content-Type', 'application/json')])
+ return request.make_response(response, [
+ ('Access-Control-Allow-Origin', '*'),
+ ('Content-Type', 'application/json')
+ ])
def search_filter(self, model: str, kw: dict, query: array = []):
""" To search data by default API Params if exist """