protected void rejectRequest ( Translet translet , CorsException ce ) throws CorsException { HttpServletResponse res = translet . getResponseAdaptee ( ) ; res . setStatus ( ce . getHttpStatusCode ( ) ) ; translet . setAttribute ( CORS_HTTP_STATUS_CODE , ce . getHttpStatusCode ( ) ) ; translet . setAttribute ( CORS_HTTP_STATUS_TEXT , ce . getMessage ( ) ) ; throw ce ; }
Invoked when one of the CORS checks failed . The default implementation sets the response status to 403 .