Q:

'ERROR not implemented' with Angular4 web worker

I used the steps described here to convert my Angular4 app to a web worker.  When I run the app, I see the following error:

The change I have from my existing Angular4 app and the new one is the support of the web worker.  
The error does not give any clue of what component or code is causing this.  Is there a tracing that I can add to somewhere to find what is causing this error? 
---- UPDATE 6/28 -----
The error is generated from the following code 
WorkerDomAdapter.prototype.getCookie = function (name) { throw 'not implemented'; }; in platform-webworker.umd.js
The getCookie call is made by http.umd.js. 

A:

The solution to this problem is to create a custom XSRFStrategy so the Angular http module uses the custom rather than the default one. 
import { HttpModule, XSRFStrategy, Request } from '@angular/http';

...

class CustomXSRFStrategy extends XSRFStrategy
{
    public configureRequest(req: Request) { /* */ }
}

...

 providers: [{ provide: XSRFStrategy, useValue: new CustomXSRFStrategy() }]

