I read all the CS Lewis books when I was a child and they had some pretty dodgy white vs brown, othering representations of the neighbouring enemy state. They were called the Calormenes or something like that, they wore turbans, worshipped a different, evil god called Tash and ate oil on their bread instead of butter like normal people would.
The reason all this remains fresh in my mind nearly forty years later is because I recognised it then as writing from a bygone era, and I worked out all by myself that attitudes change and that a reader should apply a critical eye to older texts.