froala / wysiwyg-rails

Ruby gem for Froala jQuery WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
MIT License
464 stars 102 forks source link

Image Upload #53

Closed pasvd closed 6 years ago

pasvd commented 6 years ago

Hello, I am trying Froala editor for our application. If I try upload image, I see in web console (newest FF and Chrome):

Refused to load the image 'blob:http://localhost:3000/4fc02830-3f04-456e-b63a-dcc95b1e2e8d' because it violates the following Content Security Policy directive: "img-src * data:".

My configuration:

    imageUploadMethod: 'POST',
    imageUploadURL: '/tinymce_assets',
    // Set max image size to 5MB.
    imageMaxSize: 5 * 1024 * 1024,
    imageUploadParams: {
      id: 'my_editor'
    }

Where is problem? Thank you

pasvd commented 6 years ago

Sorry, It's https://github.com/twitter/secureheaders problem.