javascript:;引發的跨域問題

使用springboot security 後a標籤href爲javascript:;會引發跨域問題:

Failed to load javascript:;: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

沒有太好的解決辦法,只能換爲 href="#"暫時解決

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章