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.
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