You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _blog-src/_posts/2015-07-02-cors.adoc
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,15 @@ For the purposes of this blogpost we'll contrive a scenario that allows us to de
44
44
45
45
=== Preparation
46
46
47
-
If you have the http://www.apiman.io/latest/download.html[apiman quickstart] running, create an *Organization* called *_Foo_*, then create a *Service* called *_Bar_*. Set your Service's implementation URL to be `http://127.0.0.1:8080/services/echo`, and select *_Rest_* as the type. Move to the *Plans* tab and tick *Make this service public*.
47
+
If you have the http://www.apiman.io/latest/download.html[apiman quickstart] running footnote:[For simplicity's sake, I suggest using the instructions in the _'Or simply try this...'_ box], you next need to deploy the *_echo-service_* to act as the backend service for our demo. *Substitute the path below* for the appropriate one corresponding to the version you downloaded.
48
+
49
+
```ShellSession
50
+
cd ~/apiman-1.1.3.Final/wildfly-8.2.0.Final/apiman/quickstarts/echo-service/
51
+
mvn clean install
52
+
mvn wildfly:deploy
53
+
```
54
+
55
+
Return to the http://127.0.0.1:8080/apimanui[apiman UI] and log in footnote:[If you used the quickstart, the defaults are U: admin P: admin123!]. Create an *Organization* called *_Foo_*, then create a *Service* called *_Bar_*. Set your Service's implementation URL to be `http://127.0.0.1:8080/services/apiman-echo`, and select *_Rest_* as the type. Move to the *Plans* tab and tick *Make this service public*.
48
56
49
57
Next, move to the *Policies* tab, click *_Add Policy_* and select *CORS Policy* from the dropdown list.
<p>If you have the <a href="http://www.apiman.io/latest/download.html">apiman quickstart</a> running, create an <strong>Organization</strong> called <strong><em>Foo</em></strong>, then create a <strong>Service</strong> called <strong><em>Bar</em></strong>. Set your Service&#8217;s implementation URL to be <code><a href="http://127.0.0.1:8080/services/echo" class="bare">http://127.0.0.1:8080/services/echo</a></code>, and select <strong><em>Rest</em></strong> as the type. Move to the <strong>Plans</strong> tab and tick <strong>Make this service public</strong>.</p>
389
+
<p>If you have the <a href="http://www.apiman.io/latest/download.html">apiman quickstart</a> running <span class="footnote">[<a id="_footnoteref_3" class="footnote" href="#_footnote_3" title="View footnote.">3</a>]</span>, you next need to deploy the <strong><em>echo-service</em></strong> to act as the backend service for our demo. <strong>Substitute the path below</strong> for the appropriate one corresponding to the version you downloaded.</p>
<p>Return to the <a href="http://127.0.0.1:8080/apimanui">apiman UI</a> and log in <span class="footnote">[<a id="_footnoteref_4" class="footnote" href="#_footnote_4" title="View footnote.">4</a>]</span>. Create an <strong>Organization</strong> called <strong><em>Foo</em></strong>, then create a <strong>Service</strong> called <strong><em>Bar</em></strong>. Set your Service&#8217;s implementation URL to be <code><a href="http://127.0.0.1:8080/services/apiman-echo" class="bare">http://127.0.0.1:8080/services/apiman-echo</a></code>, and select <strong><em>Rest</em></strong> as the type. Move to the <strong>Plans</strong> tab and tick <strong>Make this service public</strong>.</p>
390
400
</div>
391
401
<div class="paragraph">
392
402
<p>Next, move to the <strong>Policies</strong> tab, click <strong><em>Add Policy</em></strong> and select <strong>CORS Policy</strong> from the dropdown list.</p>
@@ -598,8 +608,8 @@ When <code>Host</code> and <code>Origin</code> are equal
<a href="#_footnoteref_3">3</a> For simplicity&#8217;s sake, I suggest using the instructions in the <em>'Or simply try this&#8230;&#8203;'</em> box
Copy file name to clipboardExpand all lines: blog/security/plugin/policy/cors/2015/07/02/cors.html
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,17 @@ <h2 id="let-s-give-it-a-go">Let’s give it a go</h2>
178
178
<divclass="sect2">
179
179
<h3id="preparation">Preparation</h3>
180
180
<divclass="paragraph">
181
-
<p>If you have the <ahref="http://www.apiman.io/latest/download.html">apiman quickstart</a> running, create an <strong>Organization</strong> called <strong><em>Foo</em></strong>, then create a <strong>Service</strong> called <strong><em>Bar</em></strong>. Set your Service’s implementation URL to be <code><ahref="http://127.0.0.1:8080/services/echo" class="bare">http://127.0.0.1:8080/services/echo</a></code>, and select <strong><em>Rest</em></strong> as the type. Move to the <strong>Plans</strong> tab and tick <strong>Make this service public</strong>.</p>
181
+
<p>If you have the <ahref="http://www.apiman.io/latest/download.html">apiman quickstart</a> running <spanclass="footnote">[<aid="_footnoteref_3" class="footnote" href="#_footnote_3" title="View footnote.">3</a>]</span>, you next need to deploy the <strong><em>echo-service</em></strong> to act as the backend service for our demo. <strong>Substitute the path below</strong> for the appropriate one corresponding to the version you downloaded.</p>
<p>Return to the <ahref="http://127.0.0.1:8080/apimanui">apiman UI</a> and log in <spanclass="footnote">[<aid="_footnoteref_4" class="footnote" href="#_footnote_4" title="View footnote.">4</a>]</span>. Create an <strong>Organization</strong> called <strong><em>Foo</em></strong>, then create a <strong>Service</strong> called <strong><em>Bar</em></strong>. Set your Service’s implementation URL to be <code><ahref="http://127.0.0.1:8080/services/apiman-echo" class="bare">http://127.0.0.1:8080/services/apiman-echo</a></code>, and select <strong><em>Rest</em></strong> as the type. Move to the <strong>Plans</strong> tab and tick <strong>Make this service public</strong>.</p>
182
192
</div>
183
193
<divclass="paragraph">
184
194
<p>Next, move to the <strong>Policies</strong> tab, click <strong><em>Add Policy</em></strong> and select <strong>CORS Policy</strong> from the dropdown list.</p>
@@ -390,8 +400,8 @@ <h5 id="keep-it-simple">Keep it simple</h5>
0 commit comments