YARN-2508. Cross Origin configuration parameters prefix are not honored (Mit Desai via jeagles)

(cherry picked from commit e6420fec0af9b8d4f424098688ae4926ff527fcf)