Through the header "Access-Control-Allow-Credentials" one can define that the response will be exposed and accessible to JavaScript.
Credentials are cookies, authorization headers, or TLS client certificates.
When using Cors - Cookies I need to set this header to true (https://stackoverflow.com/a/46412839/6458608).
Through a "http-only" cookie I can define that a cookie should not be exposed in the JS - context.
This two configs are challenging each other, at least in my understanding.
Questions:
- Is there some priority like "a http-only is never exposed to the JS - context even when the allow-credentials header is set"?
- Do I need to consider something while using cors - cookies? Or can I tell for sure that I can never access a http-only - cookie in JavaScript?