Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The safe mode does not seem to be available in the library #1

Closed
GitHubish opened this issue Aug 30, 2022 · 4 comments
Closed

The safe mode does not seem to be available in the library #1

GitHubish opened this issue Aug 30, 2022 · 4 comments

Comments

@GitHubish
Copy link

When we receive in the console the warning message asking us to activate the "safe mode" I see that it is not possible to do it from the exposed methods of the SDK. Shouldn't it be possible to activate it directly in the configure method?

You can disable this warning by adding: $crisp.push(["safe", true]) to your page JavaScript.

@noghartt
Copy link
Contributor

noghartt commented Oct 5, 2022

The lib injects the $crisp object on window too, so you can do:

window.$crisp.push('safe', true);

I made a PR where I'm adding the method to handle it. See here.

@jashok2
Copy link

jashok2 commented Oct 20, 2022

i got a mirror in vue3

index.ts:173 Refused to load the script 'https://client.crisp.chat/l.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

what should i do?

@baptistejamin
Copy link
Member

@jashok2 Your issue is absolutely not related. You should just edit your CSP policy as stated in the error message. Please check https://docs.crisp.chat/guides/others/whitelisting-our-systems/crisp-domain-names/

@baptistejamin
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants