How to set Cookie with samesite attribute for routes managed by ingress object?

Solution Verified - Updated -

Issue

  • router.openshift.io/cookie-same-site sets a value to restrict cookies.

    The above annotation can be set with below values:
    
    Lax: cookies are transferred between the visited site and third-party sites.
    Strict: cookies are restricted to the visited site.
    None: cookies are restricted to the visited site.
    
  • After setting the annotation router.openshift.io/cookie-same-site on routes ,the changes is getting
    overridden on route object.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content