This PR adds the ability to specify the message and HTTP status code to be returned if a request is not allowed by a given profile. If no message or code are specified, the existing defaults are returned.
Added forbiddenMessage() and forbiddenStatus methods to CorsProfile
Updated forbiddenResponse() to use the new methods instead of returning the hard-coded message and status
This PR adds the ability to specify the message and HTTP status code to be returned if a request is not allowed by a given profile. If no message or code are specified, the existing defaults are returned.
forbiddenMessage()
andforbiddenStatus
methods toCorsProfile
forbiddenResponse()
to use the new methods instead of returning the hard-coded message and statusforbidden_response
array to default profile