Repository: GoogleCloudPlatform/python-docs-samples (language: python)

Issue:
Update poll.js to include XML Header in fetch request
## Description

Fixes b/362304568

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

## Checklist
- [x] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md)
- [ ] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#readme-file)
- [ ] **Tests** pass:   `nox -s py-3.9` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] **Lint** pass:   `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones)
- [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/.github/CODEOWNERS) with the codeowners for this sample
- [ ] This sample adds a new **Product API**, and I updated the [Blunderbuss issue/PR auto-assigner](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/.github/blunderbuss.yml) with the codeowners for this sample
- [x] Please **merge** this PR for me once it is approved


Discussion / hints:

Fix patch:
diff --git a/appengine/standard/iap/requirements.txt b/appengine/standard/iap/requirements.txt
index ac3af423a43d..118baae465c8 100644
--- a/appengine/standard/iap/requirements.txt
+++ b/appengine/standard/iap/requirements.txt
@@ -2,3 +2,4 @@ Flask==1.1.4; python_version < '3.0'
 Flask==2.1.0; python_version > '3.0'
 Werkzeug==1.0.1; python_version < '3.0'
 Werkzeug==3.0.3; python_version > '3.0'
+six==1.16.0


Test patch:
diff --git a/appengine/standard/iap/main_test.py b/appengine/standard/iap/main_test.py
index 77a5b6403e56..839671ca0efa 100644
--- a/appengine/standard/iap/main_test.py
+++ b/appengine/standard/iap/main_test.py
@@ -12,9 +12,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import main
 import webtest
 
+import main
+
 
 def test_index(testbed, login):
     app = webtest.TestApp(main.app)
diff --git a/appengine/standard/iap/requirements-test.txt b/appengine/standard/iap/requirements-test.txt
index c607ba3b2abb..e94ef29cc769 100644
--- a/appengine/standard/iap/requirements-test.txt
+++ b/appengine/standard/iap/requirements-test.txt
@@ -1,3 +1,4 @@
 # pin pytest to 4.6.11 for Python2.
 pytest==4.6.11; python_version < '3.0'
+pytest==8.3.2; python_version >= '3.0'
 WebTest==2.0.35; python_version < '3.0'