Skip to content

Cross Origin Resource Sharing

arman-tdev edited this page Jun 13, 2023 · 1 revision

Cross-Origin Resource Sharing(CORS) is an HTTP-header based mechanism implemented by the browser which allows a server or an API(Application Programming Interface) to indicate any origins (different in terms of protocol, hostname, or port) other than its origin from which the unknown origin gets permission to access and load resources.

We have implemented in backend side:

If new url has been added we needs to add that url in array of below diagram: image

If new url and method wouldn't be added it will thrown an error

  1. If url is not there the error message will be Invalid url
  2. If methods is not there error message will be Invalid Methods