この問題を解決しようとしています。メッセージ:CSRF攻撃が検出されました
私はelb1を指し示すcdn url abc.comとelb2を指すdef.comを持っています。
両方ELB abc.com しかし、私はからナビゲートされるIがサーバにログインすることができ
負荷がバランスされているのと同じEC2インスタンス(EC2-AおよびEC2-B)を指す(ELB1とELB2) def.comからナビゲートされているサーバにログインできません
def.com login次のエラーが発生します。
両方のdnsが同じEC2を指しているためです。 Web.configファイルは同じです。
Message: CSRF attack detected.
Exception type: CMS.Protection.Web.UI.CsrfException
Stack trace:
at CMS.Protection.Web.UI.CsrfProtection.ThrowCsrfException(Exception innerException)
at CMS.Protection.Web.UI.CsrfProtection.OnPostMapRequestHandlerExecute(Object sender, EventArgs eventArgs)
at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler`1 h, TArgs e)
at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List`1 list, TArgs e, Boolean important)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Message: Error occurred during a cryptographic operation.
Exception type: System.Security.Cryptography.CryptographicException
Stack trace:
at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input)
at CMS.Protection.Web.UI.CsrfProtection.OnPostMapRequestHandlerExecute(Object sender, EventArgs eventArgs)
外部のウェブサイトからの投稿リクエストを送信するようです。 –
machineKeysと一致しないようです。これを見てみましょう:https://docs.kentico.com/k10/configuring-kentico/optimizing-website-performance/setting-up-web-farms/configuring-web-farm-servers#webfarmservers-configuration_themachineKeyelementinweb.configを構成することができました使用しているHFバージョンを指定してください。 – bayotop
its kentico 10 latest – SmartestVEGA