From dde70512d8ec4db2c671c8b909a0a7dc5e3e1448 Mon Sep 17 00:00:00 2001 From: Olivier Ligot Date: Fri, 15 Mar 2013 14:15:17 +0100 Subject: [PATCH] Use features from the flexible_response branch --- library/server/wsf/router/filter/wsf_cors_filter.e | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/server/wsf/router/filter/wsf_cors_filter.e b/library/server/wsf/router/filter/wsf_cors_filter.e index b306ad60..75db6afe 100644 --- a/library/server/wsf/router/filter/wsf_cors_filter.e +++ b/library/server/wsf/router/filter/wsf_cors_filter.e @@ -15,8 +15,12 @@ feature -- Basic operations execute (req: WSF_REQUEST; res: WSF_RESPONSE) -- Execute the filter. + local + l_header: HTTP_HEADER do - res.header.put_access_control_allow_all_origin + create l_header.make + l_header.put_access_control_allow_all_origin + res.put_header_text (l_header.string) execute_next (req, res) end