cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF Documentation > JAX-RS CORS
Date Tue, 04 Jun 2013 08:54:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS+CORS">JAX-RS
CORS</a></h2>
    <h4>Comment <b>removed</b> by              <a href="https://cwiki.apache.org/confluence/display/~sergey_beryozkin">Sergey
Beryozkin</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
        <p>In CrossOriginResourceSharing annotation instead of </p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">allowOrigins = {<span class="code-quote">"http:<span
class="code-comment">//area51.mil:31415"</span>}</span></pre>
</div></div>
<p>, we need to use allowAllOrigins=true since when you try to access the service from
a different domain ,in the header you won't see Access-Control-Allow-Origin:<a href="http://area51.mil:31415"
class="external-link" rel="nofollow">http://area51.mil:31415</a> and will get a 404
error from the browser you are trying to access it . </p>
    </div>

    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
    </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message