responsively-app icon indicating copy to clipboard operation
responsively-app copied to clipboard

Browser-sync-client errror

Open Conanas opened this issue 3 years ago • 1 comments

🐞 bug report

Getting error message in console

VM403:5 Refused to load the script 'https://localhost:12719/browser-sync/browser-sync-client.js?v=2.26.7' because it violates the following Content Security Policy directive: "script-src 'self'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Code where error is produced is as follows

image

✍️ Description

Working on a project and the pages do not load for any of the screens

image

Can load other pages such as youtube. My project can be displayed correctly in chrome

Conanas avatar Jul 29 '22 03:07 Conanas

Hey @Conanas :wave:,

Thank you for opening an issue. We will get back to you as soon as we can. Have you seen our Open Collective page? Please consider contributing financially to our project. This will help us involve more contributors and get to issues like yours faster.

https://opencollective.com/responsively

We offer priority support for all financial contributors. Don't forget to add priority label once you become one! :smile:

@Conanas your app have csp enabled and it prevents from connecting to localhost:12719, you need to add it address to the exception, however doing so will breach the csp so i would not recomend doing it on production, you should have set the strict csp for some reason.

z0lo13 avatar Dec 28 '22 16:12 z0lo13

Closing this as this can't be fixed. The app needs browser sync to do the events mirroring, so you'll have to relax the csp to allow this script to load for your development version.

manojVivek avatar Jan 02 '23 05:01 manojVivek

The fix is live on v1.3.0, please let me know if you still face the issue after the upgrade.

manojVivek avatar May 22 '23 04:05 manojVivek