Closed layerok closed 10 months ago
Please create a reproducible example...
I just tested with this example: https://github.com/i18next/i18next-http-backend/tree/master/example/jquery
and started it like this: http-server . -p 8081 --username usr --password 123
works like expected
It is important to inline credentials in the url to reproduce this bug. Try opening the mentioned example with this url http://usr:123@127.0.0.1:8081/. I already tried it and it reproduced
Oh, sorry, yeah it is working like expected. Warnings are printed to the console... I didn't see warnings on my production site, because I disabled debugging
🐛 Bug Report
I encountered a situation in which http-backend connector doesn't even send a request to load a translation file. And simultaneously no error is thrown to the console. During debugging I found a place where the backend connector is making a request and saw that it is making fetch request
So I decided to make this request myself in the browser console and I got the error
I fixed this by explicitly specifing origin in the
loadPath
optionTo Reproduce
Expected behavior
throw an error to the console
Your Environment