Forbiden Error since update to firefox 85
Since the upgrade to firefox 85, chronos is raising the following traceback when trying to talk to tryton:
Traceback (most recent call last):
File "/home/pokoli/projectes/nclone/trytond/trytond/protocols/wrappers.py", line 163, in wrapper
result = func(request, pool, *args, **kwargs)
File "/home/pokoli/projectes/nclone/trytond/trytond/protocols/wrappers.py", line 203, in wrapper
abort(HTTPStatus.FORBIDDEN)
File "/home/pokoli/.virtualenvs/nclone/lib/python3.9/site-packages/werkzeug/exceptions.py", line 822, in abort
return _aborter(status, *args, **kwargs)
File "/home/pokoli/.virtualenvs/nclone/lib/python3.9/site-packages/werkzeug/exceptions.py", line 807, in __call__
raise self.mapping[code](*args, **kwargs)
werkzeug.exceptions.Forbidden: 403 Forbidden: You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.
After some debugging i've discovered that the problem is that the request is send with 'null' as origin header. As this value is not inside the cors allowed resources this causes a forbiden error on Tryton.
Not sure how we should fix this.
As a workarround, setting TRYTOND_WEB__CORS
enviornment variable to null
fixed the issue