anglejsとATG Rest APIを使用してポータルを構築していますが、APIを使用してセッション確認番号を取得しようとするとエラーが発生します:rest/model/atg/rest/SessionConfirmationActor/getSessionConfirmationNumberAccess Control-Allow-Origin ATG Rest API
Error:XMLHttpRequest cannot load http://IPNUMBER:Port/rest/model/atg/rest/SessionConfirmationActor/getSessionConfirmationNumber . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://localhost ' is therefore not allowed access.
APIはPOSTMANで、ダイレクトブラウザのクエリから正常に動作しています。 これを手伝ってください。
返信いただきありがとうございます。私はATGウェブ商取引を使用しており、REST APIを有効にしています。パイプラインサーブレットを書く場所がわからないので、Hoping ATGは同じ機能をいくつか持っています。 –
Oracleフォーラムから回答が1つありましたが、これを行う方法がわかりません。リンクはhttps://community.oracle.com/message/13287142#13287142です。** DAFパイプライン・サーブレットを拡張するにはInsertableServletImpl)、ビジネス要件に応じてヘッダーを設定します。** –