1. The Transaction Company
  2. Untitled project
  3. CORS Filter
  4. Issues
Issue #32 resolved

NullPointerException is thrown when there is an invalid origin defined

Anonymous created an issue

For example, if you have set cors.allowOrigin to something like:

cors.allowOrigin=http:/a.com

a null pointer exception is thrown.

In com.thetransactioncompany.cors.ValidatedOrigin, there is a null check for scheme, so there should be a similar check for a null host.

Comments (3)

  1. Log in to comment