Hiii, Does oathkeeper support multiple domains?
# talk-oathkeeper
s
Hiii, Does oathkeeper support multiple domains?
n
in what context? the match rules include the full path requested, so as long as you have the DNS of multiple domains pointing a single oathkeeper instance, you can have that same instance match all of those domains in different rules (or the same rule with patterns)
s
@numerous-umbrella-61726 thanks for the reply. As per our implementation
Copy code
oathkeeper:
    config:
      serve:
        proxy:
          cors:
            enabled: true
            allowed_origins:
              - "https://*.<http://abc.in|abc.in>"
              - "https://*.<http://xyz.in|xyz.in>"
            exposed_headers:
              - Set-Cookie
            allow_credentials: true
            debug: true

      access_rules:
        repositories:
          - <https://storage.googleapis.com/abc/oathkeeper/access-rules/abc-server.json>
          - <https://storage.googleapis.com/abc/oathkeeper/access-rules/xyz-web.json>

      errors:
      authenticators:
        cookie_session:
          enabled: true
          config:
            check_session_url: <http://kratos-public.abc.in/sessions/whoami>
            preserve_path: true
            extra_from: "@this"
            subject_from: "identity.id"
            only:
              - ory_kratos_session

        noop:
          enabled: true
We are getting cors issue while accessing domain
https://*.<http://xyz.in|xyz.in>
but not for
https://*.<http://abc.in|abc.in>
. And we had different access rules for two domains.