I am attempting to send a POST from the server side of my application to a CDN hosted by Amazon. I believe I may be running into a CORS issue. My question is this: I understand that CORS issues exist when posting from a client side application such as a web browser, but do they also exist when posting from the server side to another domain?
Asked
Active
Viewed 148 times
1 Answers
2
The same origin policy does not apply to server initiated requests, only from browser-based requests. So, CORS is not a factor here.

Ray Nicholus
- 19,538
- 14
- 59
- 82
-
is there a reason for that though? why is it that server-side requests are treated differently than browser requests? – one stevy boi Jun 03 '14 at 15:07
-
Cross-origin server side requests have never been restricted by the same origin policy. Browser-based requests have. CORS lifts that restriction a bit, but requires you follow a few rules (outlined in the CORS spec). – Ray Nicholus Jun 03 '14 at 15:14
-
I have discussed this a bit in a past answer. Please see http://stackoverflow.com/a/22108815/486979 – Ray Nicholus Jun 03 '14 at 15:15