Transferring community college credits to HS transcript?

Is my high school allowed to deny transfer of community college credits to my transcript? They didn’t offer AP Bio until junior year and AP Chem until senior year so I took them both summer after sophomore year at cc. As of now I’ve taken 5 cc classes and would really like it to be worth smth for my gpa. They say they won’t take it bc they offer these classes at school (now).

It’s not a school-sponsored dual enrollment program - you just decided to take them completely independently?

Unless you had an agreement in advance, the school is free to apply whatever policy they choose.

For applying to colleges as frosh, you will have to report all high schools and colleges attended, so all courses and grades at all such schools will be considered for college admission purposes.