rails redirects to 'data:,'

前端 未结 2 1430
我在风中等你
我在风中等你 2021-01-18 03:39

In my app, I\'m saving an input of HTML as a \'page\' like so:

def create
  @page = Page.new(page_params)
  @page.unique = loop do
     random_unique = Secur         


        
相关标签:
2条回答
  • 2021-01-18 03:52

    I found the answer on IRC.

    This is a security feature, the HTML content of the new page matches the HTML content of the submitted form, which Chrome blocks.

    0 讨论(0)
  • 2021-01-18 03:54

    The problem is caused by the reasons mention by OP - "This is a security feature, the HTML content of the new page matches the HTML content of the submitted form, which Chrome blocks".

    The solution for me was to no longer out the html data on show page. I could get away with this because my instance is a backend app that did not require the html to be visible, just needs to be in the db.

    0 讨论(0)
提交回复
热议问题