Missing origin header in capacitor http request

I am using Capacitor 6.1, Ionic 7.2, Angular 18 and Node 20 and working on Android

Currently, i am encoutering a header problem when doing request to my API.
My server side needs to receive “Origin” header from my ionic app with the scheme “dev://localhost”, but it is not set by default in my header when sending request with the lib @angular/common/http client

What should i do to have this header set ?

i tried to set in in interceptor like above, but getting "refused to set unsafe header “origin” :

intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
    const authReq = req.clone({
        headers: req.headers.append('Authorization', `Bearer ${idToken}`)
                            .append('Origin', environment.origin)
    return next.handle(authReq);


Thanks for your help