Frontend: CSRF support

This commit is contained in:
Jonas Winkler
2020-11-11 20:19:57 +01:00
parent 5a658b7ad6
commit 5d0434fd03
5 changed files with 63 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { CsrfInterceptor } from './csrf.interceptor';
describe('CsrfInterceptor', () => {
beforeEach(() => TestBed.configureTestingModule({
providers: [
CsrfInterceptor
]
}));
it('should be created', () => {
const interceptor: CsrfInterceptor = TestBed.inject(CsrfInterceptor);
expect(interceptor).toBeTruthy();
});
});