SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Same-Origin Policy

The Same-Origin Policy is a browser security mechanism that blocks web pages from making requests to a different origin (domain, protocol, or port) than the one that served the page. Developers encounter it when an SAPUI5 or other web application attempts to call a backend service hosted on a different domain, causing the request to fail. To resolve this, Cross-Origin Resource Sharing (CORS) must be configured, which involves adding trusted hosts on the server side to explicitly permit cross-origin requests.

Docs explaining this concept

Concepts that build on this