I am working on angular 5 application. my site is working in chrome browser well. when i try to log in mozila firefox. i am getting the following CORS exception. please help me with it.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://00.000.000.00/login (this is server url). (Reason: missing token ‘access-control-allow-headers’ in CORS header ‘Access-Control-Allow-Headers’ from CORS preflight channel).
code:
const header = {
headers: new HttpHeaders({
'content-Type': 'application/json',
'accept':'application/json'
}),
'responseType': 'text' as 'text',
}
it is working chrome browser. but it is not working in firefox browser. can you tell me the reason?