If A and B are complementary angles, then
Given,
A + B = 90°
B = 90° - A
sin B = sin (90° - A)
sin B = cos A
Taking the reciprocal,
cosec B = sec A
Or
sec A = cosec B