NullPointerException is thrown when there is an invalid origin defined

Issue #32 resolved
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