HTTP interceptor causing CORS issue using ionic/angular

here i am using ionic for web and mobile also and i am using a https url while integrating it i got cors issues .Later when i checked after removing the http interceptor cors issue is resolved but how can i solve this issue below is my code

issues: While using interceptor i am getting CORS issue and if i remove interceptor it is working fine.

export class HttpConfigInterceptor implements HttpInterceptor {
    token:any;

    constructor(public storage: Storage ) { 
        this.storage.get('Token').then(data => {
            this.token = data;
        });
    }


    intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {

        //Authentication by setting header with token value
        if (this.token) {
            request = request.clone({
                setHeaders: {
                    Authorization: this.token
                }
            });
        }

        if (!request.headers.has('Content-Type')) {
            request = request.clone({
                setHeaders: {
                    'content-type': 'application/json'
                }
            });
        }

        request = request.clone({
            headers: request.headers.set('Accept', 'application/json')
        });

        return next.handle(request).pipe(
            map((event: HttpEvent<any>) => {
                if (event instanceof HttpResponse) {
                   
                }
                return event;
            }),
            catchError((error: HttpErrorResponse) => {
                console.error(error);
                return throwError(error);
            }));
    }


}

Remove all the custom content type munging from your interceptor. It shouldn’t be there anyway, and the way that capitalization is being improperly handled is likely triggering CORS.