WebIDE throws "No 'Access-Control-Allow-Origin' header is present on the requested resource." when loading webviews
Summary
WebIDE has webviews which loads app.js
from gitlab.com
, but fails due to CORS policy:
index.html:1 Access to script at 'https://gitlab.com/assets/webpack/gitlab-vscode/0.0.1-dev-20230802205337/vscode/extensions/gitlab-vscode-extension/webviews/gitlab_duo_chat/assets/app.js'
from origin 'https://0s9miaaag7of9bkkd6p65manuq5gp1cvmo3m4ol1ssrk0kui575u.cdn.web-ide.gitlab-static.net'
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Proposal
I assume we need to set CORS policy to allow web-ide.gitlab-static.net
to be request origin to load app.js
/cc @pslaughter since you recently changed CDN for web-ide.
Edited by Pavel Shutsin