diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 14:41:39 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 14:41:39 +0700 |
| commit | 88ccef3e7d16db448ba167a64ddf0bc200918a53 (patch) | |
| tree | 422dd432589b10dd21ecfd3818b19ef24f24ba04 | |
| parent | c2c40255ecd4fbf0ee79360a26d92316fcb348c3 (diff) | |
Allow cors on similar
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 2 |
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') |
