Add cookie origin comparison utility method