rails redirects to 'data:,'

前端 未结 2 1442
我在风中等你
我在风中等你 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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.

提交回复
热议问题