Both forms are correct. You’re and your not only similar in spelling but also are homophones, which means they have the same pronunciation. This is probably the reason why these two forms are often mistaken. You’re is a contraction of the phrase you are, which is a conjugation of a verb to be in the second person singular and plural. While your is a possessive form of you, a pronoun is used as a possessive adjective that signalizes belonging. Besides similarities, these two forms have absolutely different functions in the sentence and meanings, so they are not interchangeable.

Correct spelling

you’re

Correct spelling, explanation: a contraction of you are.

Correct spelling

Correct spelling, explanation: a pronoun that is used as an attributive adjective and determines possession.

Definition of you’re:
verb: short for you are; to be, live, occur, happen, take place;
I know you’re not used to these conditions, but it is only for a few days.
You’re like a brother to me and you can always count on me.

Definition of your:
pronoun: relating or belonging to someone or a group of people specifically or generally;
Do you still remember your first day at school?
Your parents always want the best for you and your brother.