GLENDALE, Ariz. (CBS/AP) — Drew Stanton threw a pair of third-quarter touchdown passes to rookie John Brown and Arizona rallied to beat San Francisco 23-14 on Sunday, snapping a four-game losing streak to the 49ers.

Tommy Kelly blocked a field goal for the Cardinals (3-0), who outscored San Francisco 17-0 in the second half.

READ MORE: Evacuation Warnings Issued for San Mateo County Areas Burned by CZU Lightning Complex Fire

The 49ers (1-2) mounted 80-yard touchdown drives the first two times they had the ball, then didn’t score again, blowing a halftime lead for the second week in a row.

READ MORE: Police Investigation of Shattered Vehicle Windows Temporarily Shuts Highway 17 Saturday

Stanton, starting for injured Carson Palmer for the second straight week, completed 18 of 33 for 244 yards and two scores. Michael Floyd caught five for 114 yards.

The 49ers’ Colin Kaepernick completed 29 of 37 for 245 yards and a touchdown and ran for another 54.

MORE NEWS: Russian River Rubber Dam Deflated Due to Impending Storm

© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.