1
1
.
.
9
9
.
.
3
3
C
C
O
O
R
R
S
S
-
-
D
D
i
i
s
s
a
a
b
b
l
l
e
e
d
d
I
I
n
n
f
f
o
o
This tutorial shows how
● Source Application throws CORS Error (we will use Google Chrome Developer Tools to see CORS Error)
● when trying to access Resource from Destination Application
● when CORS is by default disabled in Destination Application
Since this is default behavior of Spring Boot Application no changes will be made to Destination Application.
CORS Schema [Results]
Source
Application
Destination
Application
CORS is Disabled
HTML with JavaScript
http://localhost:8080/Hello
http://localhost:8085/Hello
Call Resource
from JavaScript
R
R
e
e
s
s
u
u
l
l
t
t
s
s
Start Source Application
Start Destination Application
http://localhost:8080
Customize and control Google Chrome
– More Tools
– Developer Tools
– Network
http://localhost:8080/Hello (throws CORS error)
Click on Initiator Hello:8