tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57724] New: CorsFilter does not work correctly if the "origin" has the same value with the "host"
Date Wed, 18 Mar 2015 14:53:38 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=57724

            Bug ID: 57724
           Summary: CorsFilter does not work correctly if the "origin" has
                    the same value with the "host"
           Product: Tomcat 7
           Version: 7.0.57
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: wenjiezhang2013@gmail.com

I am using tomcat 7.0.57, and I have CorsFilter configured in my application,
in my login page, I just have normal form with the username & password filter
and a submit button, I set the "method" to "POST', when I use Google Chrome to
login, I get a 403 error.

The reason is Google Chrome adds the "origin" into the http header, and the
value is same as the host value(both of them are "http://localhost:8000").

It will be nice if someone can update CorsFilter.checkRequestType to return a
CORSRequestType.NOT_CORS in this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message