How to apply CORS to a specific rest endpoint -
i not sure whether have right understanding cors, possible apply cors specific rest endpoint under domain.
example: there 2 rest endpoints , b under domain https://www.example.com/, can apply cors rest endpoint a.
i think cors applied @ domain level, not @ endpoint level.
yes can enable cors access without while keeping disabled b.
the mechanism cors interaction browsers through http headers. can choose return cors headers in responses requests while choosing not return them in responses requests b.