How to resolve CORS error and 401 error

Is this the same post as How to resolve CORS error and 401 error ?