Monday, 8 May 2017

Resolving CORS issue

I get the following issue even though I have added - allow CORS headers, its throwing error :

XMLHttpRequest cannot load http://localhost:8628/test/api/v1/test/12333/NA/NA/1234/12222/NA/NA/NA. Request header field messageid is not allowed by Access-Control-Allow-Headers.

even though we have -

CORS: {
         headers: ['Access-Control-Allow-Credentials', 'Access-Control-Allow-Origin', 'Access-Control-Allow-Methods',
             'X-Requested-With', 'Authorization', 'username', 'messageid', 'conversationId', 'requestedTimestamp'],
         origins: ['http://localhost:8626', 'http://localhost:8628','http://localhost:8629', 'http://localhost:3000', 'http://localhost:8100'
             ],
         credentials: true
     },


via Smitha

No comments:

Post a Comment