public final class TkCors extends Object implements Take
This take checks if the request (Origin) is allowed to perform the desired action against the list of the given domains.
The specification of CORS can be found on the W3C web site on the following link or even on the RFC-6454 specification.
public Response act(Request req) throws IOException
Take
act
in interface Take
req
- Request to processIOException
- If failsCopyright © 2015–2018 Take. All rights reserved.