OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Issue with CORS Policy for Google Cloud Storage Video Files in ArcGIS Enterprise

  • Thread starter Thread starter Noah Khounsombath
  • Start date Start date
N

Noah Khounsombath

Guest
I'm facing a CORS policy issue when trying to access video files stored in Google Cloud Storage from an application in ArcGIS Enterprise. The specific error message I receive is:

Access to image at 'https://storage.googleapis.com/pomerleauoic/DJI_20240612163254_0001.MP4' from origin 'https://gis.pomerleau.ca' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'.

Here are the steps I've taken to resolve the issue:


  1. Updated the CORS configuration for my Google Cloud Storage bucket with the following settings:

    "origin": ["https://gis.pomerleau.ca"], "method": ["GET"], "responseHeader": ["Content-Type", "Access-Control-Allow-Origin", "Access-Control-Allow- Credentials"], "maxAgeSeconds": 3600


  2. I verified that the CORS configuration is correctly applied using gsutil cors get gs://pomerleauoic.


  3. Cleared browser cache and tested in different browsers and incognito mode. Despite these steps, I still receive the same CORS error. Unfortunately, I do not have the ability to modify the client-side request.

What is strange is that I previously used the same google cloud storage bucket for another video, and there is no problem with that video (I can access it from my application, even though it has the same configuration (public access) as the problematic video). Has anyone encountered a similar issue or have any suggestions on how to resolve this?

I linked the 2 videos. Thanks in advance for your help!

Problematic video : https://storage.googleapis.com/pomerleau/DJI_20240612165948_0001.MP4

Working access video : https://storage.googleapis.com/pomerleau/INSPECTION_C-EST_D-NORD_4min55.mp4
<p>I'm facing a CORS policy issue when trying to access video files stored in Google Cloud Storage from an application in ArcGIS Enterprise. The specific error message I receive is:</p>
<blockquote>
<p>Access to image at 'https://storage.googleapis.com/pomerleauoic/DJI_20240612163254_0001.MP4' from origin 'https://gis.pomerleau.ca' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'.</p>
</blockquote>
<p>Here are the steps I've taken to resolve the issue:</p>
<ol>
<li><p>Updated the CORS configuration for my Google Cloud Storage bucket with the following settings:</p>
<p>"origin": ["https://gis.pomerleau.ca"],
"method": ["GET"],
"responseHeader": ["Content-Type", "Access-Control-Allow-Origin", "Access-Control-Allow-
Credentials"],
"maxAgeSeconds": 3600</p>
</li>
<li><p>I verified that the CORS configuration is correctly applied using gsutil cors get gs://pomerleauoic.</p>
</li>
<li><p>Cleared browser cache and tested in different browsers and incognito mode.
Despite these steps, I still receive the same CORS error. Unfortunately, I do not have the ability to modify the client-side request.</p>
</li>
</ol>
<p>What is strange is that I previously used the same google cloud storage bucket for another video, and there is no problem with that video (I can access it from my application, even though it has the same configuration (public access) as the problematic video).
Has anyone encountered a similar issue or have any suggestions on how to resolve this?</p>
<p>I linked the 2 videos.
Thanks in advance for your help!</p>
<p>Problematic video : <a href="https://storage.googleapis.com/pomerleau/DJI_20240612165948_0001.MP4" rel="nofollow noreferrer">https://storage.googleapis.com/pomerleau/DJI_20240612165948_0001.MP4</a></p>
<p>Working access video : <a href="https://storage.googleapis.com/pomerleau/INSPECTION_C-EST_D-NORD_4min55.mp4" rel="nofollow noreferrer">https://storage.googleapis.com/pomerleau/INSPECTION_C-EST_D-NORD_4min55.mp4</a></p>
Continue reading...
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top