You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2024/11/09 06:53:00 UTC

[jira] [Created] (YUNIKORN-2967) Cleanup REST response headers

Wilfred Spiegelenburg created YUNIKORN-2967:
-----------------------------------------------

             Summary: Cleanup REST response headers
                 Key: YUNIKORN-2967
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2967
             Project: Apache YuniKorn
          Issue Type: Improvement
          Components: core - common
            Reporter: Wilfred Spiegelenburg
            Assignee: Wilfred Spiegelenburg


The REST responses set a standard header set on all responses.

The [RFC|https://datatracker.ietf.org/doc/html/rfc7480#section-5.6] says for CORS headers:
{code:java}
Use of the Access-Control-Allow-Credentials header field is NOT RECOMMENDED.{code}
We set that header to TRUE, we should not do that.

All methods are part of all responses in the Access-Control-Allow-Methods list. That is not correct, we do not support HEAD and only POST for one. We should not set all of these methods, just the GET or POST beside the OPTIONS that is supported.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org