Make allowed cors headers configurable

This commit is contained in:
Willem Dantuma 2022-10-10 18:36:51 +02:00
parent 96ca17675f
commit de028920c8
3 changed files with 22 additions and 4 deletions

View file

@ -35,6 +35,20 @@ func (m *MockConfiguration) EXPECT() *MockConfigurationMockRecorder {
return m.recorder
}
// AllowedCorsHeaders mocks base method.
func (m *MockConfiguration) AllowedCorsHeaders() []string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AllowedCorsHeaders")
ret0, _ := ret[0].([]string)
return ret0
}
// AllowedCorsHeaders indicates an expected call of AllowedCorsHeaders.
func (mr *MockConfigurationMockRecorder) AllowedCorsHeaders() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllowedCorsHeaders", reflect.TypeOf((*MockConfiguration)(nil).AllowedCorsHeaders))
}
// AuthMethodPostSupported mocks base method.
func (m *MockConfiguration) AuthMethodPostSupported() bool {
m.ctrl.T.Helper()