Allow the callback to specify the origin

When integrating this into my site, I realized it didn't make sense that the config.origin function only return true or false, because the false origin has a different meaning.

So, in this change, I make the method return the origin.

Let me know if this makes sense.