alphagov / consent-api

Service for sharing user consent to cookies across multiple domains
https://consent-api-bgzqvpmbyq-nw.a.run.app
MIT License
8 stars 0 forks source link

fix(client): IE11: req.timeout should be defined after req.open #234

Closed guilhem-fry closed 7 months ago

guilhem-fry commented 7 months ago

A bug reported by Ashley Burnett, gov.uk frontend:

Hi Guilhem, when testing single consent on IE11 I was getting an InvalidStateError when trying to accept or reject cookies. I researched the error, and it looks like it's because req.timeout is being defined before req.open in the code. So it needs to be defined afterwards.