created a new app using abp new MyApp -u angular -pwa
when trying to run it following error occures in dev console:
Refused to connect to 'http://localhost:4200/.well-known/appspecific/com.chrome.devtools.json' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
3 Answer(s)
-
0
The error message "Cannot GET /" and the 404 Not Found response from
http://localhost:4200/
indicate that the Angular development server is not serving your application as expected. This is not an ABP-specific issue, but a general Angular CLI/server problem.This usually happens if you run
ng serve
(oryarn start
/npm start
) in the wrong directory, or if the Angular app was not built/installed correctly.
Solution Steps:
Navigate to the Angular Project Folder:
- Make sure you are in the
angular
subfolder inside your ABP solution (e.g.,MyApp/angular
).
- Make sure you are in the
Install Dependencies:
- Run:
yarn
or
npm install
- Start the Angular Development Server:
- Run:
yarn start
or
npm start
- This should start the Angular app on
http://localhost:4200/
.
Check for Errors:
- If you still see "Cannot GET /", ensure you are not running another server (like Express) on the same port, and that your terminal output shows Angular CLI is serving the app.
PWA Note:
- If you used the
-pwa
flag, it should not affect local development, but make sure your environment is clean (no service workers from previous builds).
- If you used the
Reference Screenshot: You should see the ABP Angular home page, not "Cannot GET /".
Sources
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
Hello, We have also been able to reproduce this issue. Until an official solution is provided, could you please apply the solution provided in the following link for now ? link
-
0
Thanks.
literally saw that other question a minute after i panic posted this