Most dry ingredients and especially spices, won't turn "dangerous" to your health when expired. However, they may loose their flavour over time. My general rule of thumb with anything is: If it looks ok, smells ok and when I try tastes ok, there should not be any problem with it!
Canned goods literally keep forever (despite the expiry date). The only time when one should absolutely NOT eat canned goods (regardless of the expiry date) is when the can is bulging or swollen - that's botulism and can be deadly!