にアレルギーがあります

have an allergy to

→ に
phrase Rare #33,280
have an allergy to に marks what someone is allergic to. The phrase can also be used with あります changed to ありません to say that someone is not allergic to something.
JA: 私は卵にアレルギーがあります。
EN: I have an allergy to eggs.

どんな食べ物にアレルギーがありますか?

What foods are you allergic to?

薬にアレルギーがあります。

I'm allergic to medication.

この薬にアレルギーがありますか?

Are you allergic to this medicine?