CORS

وب 1 views

Persian equivalent اشتراک منابع میان مبدأهای متفاوت

In plain language The server tells the browser which sites may read its response.

Short definition An HTTP-header mechanism for allowing browser scripts to read responses across origins.

Detailed explanation and example

A frontend on one domain can read an API response on another when the server permits that origin. Some requests are first checked with an OPTIONS preflight.

Reference