CORP lets a resource restrict cross-origin no-cors loading. Choose its value based on where that resource is intentionally used.
A policy on the resource
Cross-Origin-Resource-Policy: same-originCORP is sent by the server supplying the resource. It can restrict no-cors loads, such as certain cross-origin image or script requests. It does not grant JavaScript permission to read an API response.
For readable cross-origin responses, use the separate CORS protocol. A CORP policy also does not stop every client from requesting a public URL.
Compare the values
same-origin restricts loading to the same origin. same-site allows a broader site boundary; it is not equivalent to trusting one exact hostname. cross-origin permits cross-origin loading under this policy.
A public asset meant for other websites may need cross-origin permission. Private application resources may need a narrower boundary, plus real authorization where appropriate.
Check consumers and COEP
A document using COEP require-corp may depend on a suitable CORP value from a resource loaded in no-cors mode. Successful CORS loading is another permission path.
Test intended resource consumers before setting same-origin globally. A missing CORP header is not automatically a failure on a normal public response. Review resource purpose, request mode, and the embedding document's COEP policy together.