|
From: | Guillaume François |
Subject: | Re: CSRF does not work in iframe. |
Date: | Thu, 14 Sep 2017 10:06:06 +0200 |
Any help will be niceOn Thu, Sep 7, 2017 at 12:37 PM, Bhuvan Gupta <address@hidden> wrote:Hello all,I create a allMonit.html which have two iframe with src of two different monit http interface running on two different systemallMonit.html structure<iframe src = "" href="http://firstserver:2812" target="_blank">http://firstserver:2812"></iframe> <iframe src = "" href="http://seconderver:2812" target="_blank">http://seconderver:2812"></iframe> Now when i open allMonit.html in chrome , i see two monit interfaces. GREATNow if i try to let say "start a service" on one firstserver. I get invalid CSRF.Upon investigation i found that without iframe the http request contains a cookiee header likeCookie:securitytoken=6265d84a17c2715c7252c84d88a479cf Where as http request from iframe does not include cookie header.Upon further study, i found that since monit http response does not contain following headerAccess-Control-Allow-Credentials: true and hence browser will not transmit the cookie back to server.Now the question arises:QUESTION: How to configure monit to add addition http headerThanksBhuvan
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |