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

firenvim#eval_js not working #1287

Closed
olablt opened this issue Jan 8, 2022 · 1 comment · Fixed by #1288
Closed

firenvim#eval_js not working #1287

olablt opened this issue Jan 8, 2022 · 1 comment · Fixed by #1288
Milestone

Comments

@olablt
Copy link

olablt commented Jan 8, 2022

  • OS Version: Fedora
  • Browser Version: Firefox 95.0.2
  • Browser Addon Version: 0.2.11
  • Neovim Plugin Version: 0.2.2

What I tried to do

In vim config I have a command:

nnoremap <C-s> <Cmd>call  firenvim#eval_js('console.log("Hello World!")')<CR>

What happened

When I press C-s in console I get:

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).

My question

How to overcome?

@glacambre
Copy link
Owner

This is caused by the website's security settings, unfortunately there is nothing you can do to work around this. I think I might be able to work around this issue in Firefox by using a hidden API instead of what I'm currently doing, so I'll keep this issue open.

Thanks for the report :)

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

Successfully merging a pull request may close this issue.

2 participants