summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-01 14:41:39 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-01 14:41:39 +0700
commit88ccef3e7d16db448ba167a64ddf0bc200918a53 (patch)
tree422dd432589b10dd21ecfd3818b19ef24f24ba04 /indoteknik_api/controllers/api_v1
parentc2c40255ecd4fbf0ee79360a26d92316fcb348c3 (diff)
Allow cors on similar
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/product.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index 26a7f1ec..975c81c6 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -84,7 +84,7 @@ class Product(controller.Controller):
return self.response(data)
- @http.route(prefix + 'product/<id>/similar', auth='public', methods=['GET', 'OPTIONS'])
+ @http.route(prefix + 'product/<id>/similar', auth='public', methods=['GET', 'OPTIONS'], cors='*')
def get_product_similar_by_id(self, **kw):
if not self.authenticate():
return self.response(code=401, description='Unauthorized')