XMLHttpRequest cannot load http://*URL*. Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response. on API Level 25 or lower

when try call the api-url to generate a token in the sing in. only in android 7.1 or lower don’t working. In android 8 or high work perfectly.

anyone have a idea from this?