method

block_all_mixed_content

rails latest stable - Class: ActionDispatch::ContentSecurityPolicy
block_all_mixed_content(enabled = true)
public

Specify whether to prevent the user agent from loading any assets over HTTP when the page uses HTTPS:

policy.block_all_mixed_content

Pass false to allow it again:

policy.block_all_mixed_content false