diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-02-15 10:57:20 +0100 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-02-15 13:22:39 +0100 |
| commit | 6899bb829ab8408d6e37fb65615b13c790f49a03 (patch) | |
| tree | 0a60f8a745b2969c2c9a2ab739b0dc7d84858394 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 259686ba78d7883b450fd014c5be8fa6622f77f3 (diff) | |
[FIX] point_of_sale: http fetch img require right headers
The pos must be in http to talk to the posbox
The problem here is that imgs can sometime be fetch in https depending on the server's configuration
Before this commit, when converting imgs to base64, a "Tainted canvas" traceback was thrown by the browser
due to difference in domain that http VS https make
After this commit, we explicitly allow cross origin when fetching the image
while requiring the server to send the right headers
OPW 805860
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
