• Hi
    I can’t make this to work, I always get a cross origin error.
    Even when adding define('JWT_AUTH_CORS_ENABLE', true); to my wp-config file.

    export function getToken(data:any): Promise<UserContainer<User>> {
        return getTokenApi.post('https://mydomain.com/wp-json/jwt-auth/v1/token', {
            params: {
                username:data.email,
                password:data.password
            }
        }); 
    }
    • This topic was modified 3 years, 11 months ago by aprods.
  • The topic ‘Enable the CORs Support not working’ is closed to new replies.