everything was working fine prior to today. i logged in ready to get to work and this error pops up:
Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker: The provided scriptURL (‘https://164kaqdkqghcrut8gmj49nmg7dl3lcb2n8ohr2opvqpmubm0439t.cloudworkstations.googleusercontent.com/code-oss/0477875065b5d97c516e3065230f3f2188f33b48/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=idx-backend-django-1738851911053.cluster-6yqpn75caneccvva7hjo4uejgk.cloudworkstations.dev’) violates the Content Security Policy…
idk what to do or what went wrong. the application im working on is a django project and below is my dev.nix file
{ pkgs, … }: {
channel = “stable-24.05”;
packages = [
pkgs.python3
pkgs.python3Packages.pip
];
env = {
DJANGO_SETTINGS_MODULE = “payskul.settings”;
};
idx = {
extensions = [
“ms-python.python”
];
workspace = {
onCreate = {
setup = ''
python3 -m venv env
source env/bin/activate
pip install django
pip install -r requirements.txt
'';
default.openFiles = [ "README.md" "urls.py" ];
};
};
previews = {
enable = true;
previews = {
web = {
command = [ "bash" "-c" "source env/bin/activate && python manage.py runserver $PORT" ];
manager = "web";
env = {
PORT = "$PORT";
};
};
};
};
};
}