we are trying to use API login function in Vue but we got this error:
Access to fetch at 'http://ip/api/method/login' from origin 'http://ip' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
we have updated nginx.conf as mentioned here
but still get this error
what’s going wrong with us?