Jquery load https url

后端 未结 3 660
遇见更好的自我
遇见更好的自我 2021-01-12 09:26

I have this problem. In external web site I have a script like this:

3条回答
  •  北海茫月
    2021-01-12 09:42

    I had this issue on Ruby on Rails webpage and the the mistake was to use "_url" helper instead of "_path" helper, on a https webpage:

    in a view: wrong: borrar_linea_factura_url(l)

    ok: borrar_linea_factura_path(l)

    As a recap of said before:

    "_url" helper generates /controller/action/params

    "_path" helper generates https://controller/action/params

提交回复
热议问题