issue #149 (Simple CORS support for GET requests in policy-driven framework)
This commit is contained in:
@@ -53,6 +53,9 @@ feature {NONE} -- Implementation
|
||||
l_dt := (create {HTTP_DATE}.make_from_date_time (l_last_modified)).rfc1123_string
|
||||
a_header.put_header_key_value ({HTTP_HEADER_NAMES}.header_last_modified, l_dt)
|
||||
end
|
||||
if attached a_handler.allowed_cross_origins (req) as l_cors then
|
||||
a_header.put_header_key_value ({HTTP_HEADER_NAMES}.header_access_control_allow_origin, l_cors)
|
||||
end
|
||||
res.put_header_text (a_header.string)
|
||||
if l_ok then
|
||||
if l_chunked then
|
||||
|
||||
Reference in New Issue
Block a user