CORS error was firsly fixed with4bd8e3e2edin 11.0 Then it was cherry-pick'd and improved in 10.0 with9f1438d5f1. But the improvement was lost during forward port from 10.0 to 11.0. This commit adds the lost fix. Closes #26812
CORS error was firsly fixed with4bd8e3e2edin 11.0 Then it was cherry-pick'd and improved in 10.0 with9f1438d5f1. But the improvement was lost during forward port from 10.0 to 11.0. This commit adds the lost fix. Closes #26812