gsamokovarov / rvt

Remote Terminal for the Browser.
MIT License
56 stars 17 forks source link

Add nonce to script tag #6

Closed mkamensky closed 5 years ago

mkamensky commented 5 years ago

rvt fails when csp disallows inline scripts without a nonce. I solved the problem by replacing the <script> tags in index.html.erb with

<%= javascript_tag nonce: true do -%>
...
<% end -%>
gsamokovarov commented 5 years ago

Thanks for the report!

gsamokovarov commented 5 years ago

Added in the new release.