cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CXF-7127) WebTarget Doesn't Set Origin Header
Date Fri, 04 Nov 2016 14:59:58 GMT

     [ https://issues.apache.org/jira/browse/CXF-7127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Carman closed CXF-7127.
-----------------------------
    Resolution: Workaround

There is a work-around for this issue involving the HTTP Client transport (see comment).

> WebTarget Doesn't Set Origin Header
> -----------------------------------
>
>                 Key: CXF-7127
>                 URL: https://issues.apache.org/jira/browse/CXF-7127
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.8
>            Reporter: James Carman
>
> When trying to execute a simple "hello world" GET request such as:
> {code}
> WebTarget target = ClientBuilder.newClient().target("http://localhost:8080/");
> String answer = target.path("hello").path("World")
>                 .request(MediaType.TEXT_PLAIN)
>                 .header("Origin", "http://localhost/")
>                 .get(String.class);
> {code}
> I do not see the "Origin" header on the server when the request gets there.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message