-
Notifications
You must be signed in to change notification settings - Fork 26
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:
If new url and method wouldn't be added it will thrown an error
- If url is not there the error message will be Invalid url
- If methods is not there error message will be Invalid Methods