flutter / uxr

UXR work for Flutter
BSD 3-Clause "New" or "Revised" License
227 stars 28 forks source link

Allow cross origin access for survey metadata json files #128

Closed kenzieschmoll closed 8 months ago

kenzieschmoll commented 8 months ago

Tools access survey metadata JSON files to detect whether there are active surveys to show. Recently, the DevTools survey metadata file was moved from flutter/website to flutter/uxr (PR), but now we are hitting cross origin access issues when trying to access the file from the cloud storage bucket. We should be able to fix this by pushing a config file to the cloud storage bucket to set Access-Control-Allow-Origin.

The flutter website supports this by setting Access-Control-Allow-Origin to * for JSON files. Here is the PR where this was added: https://github.com/flutter/website/pull/4899/files

kenzieschmoll commented 8 months ago

I have verified this issue has been resolved. Thanks @khanhnwin!