Legacy Knowledge Base
公開されました Jul. 2, 2025

コントロールパネルのサイトページでJavaScriptを追加する機能を削除する。

Written By

Justin Choi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • DXP 7.0では、ページにJavaScriptを追加する機能を無効にし、悪意のあるコードの注入を防止します。

js-available.png

環境

  • DXP 7.0フィックスパック60以上
  • この機能は、DXP 7.0 Fix Pack 60で導入されました。

解決策

  1. DXP 7.0 Fix Pack 60以降をインストールしてください。
  2. portal-ext.propertiesに、以下のプロパティを追加します -
    1. field.enable.com.liferay.portal.kernel.model.Layout.javascript=false
    2. field.enable.com.liferay.portal.kernel.model.LayoutSet.javascript=false
  3. アプリケーションサーバーを起動します。
  4. コントロールパネル>をクリックして、 ページの設定 1> メニューに移動します。ナビゲーション> 3丸アイコン>任意のページ(パブリックまたはプライベート)の横にあるページ を構成します。

この時点で、JavaScriptを追加する機能は終了しています。

js-disabled.png

Did this article resolve your issue ?

Legacy Knowledge Base