REST - What is CORS?

Asked

Viewed 42 times

0

I’m starting in the development of Restful applications, with Spring and JAX-RS and I realized that some systems create such a CORS, not having CORS configured in the application would have exactly what impact?

  • CORS is not the setting itself, it refers to something that requires different origins, like vc has an HTTP page in a domain called xyz.com and you via Ajax try to call abc.com/foo/bar, see that the domains are different, then the problem occurs, because for security the browser will bar this, so that it can "share" (the S is probably Sharing) will be necessary to add in abc.com/foo/bar headers to unlock a type of access as needed/customizable ...

  • ... can release that only a few specific vs access the abc.com or even liberate any domain, people tend to liberate any and all domain, which not always is ideal, because this would be out of control, but there are cases that are necessary, according to the need of the system. For more details on how to allow a domain to be accessed by specific others or by several others see the answers to the question: https://answall.com/q/145490/3635, specific ask a new detailed question.

  • 2

    Excellent explanation, at last I understood rs...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.