Hey DataHub team, I am looking to build a support ...
# all-things-deployment
c
Hey DataHub team, I am looking to build a support system for our internal entities and for that I would like to integrate some of the DataHub APIs in our domain. The problem starts when requesting HTTP requests I am getting a CORS not allowed from the DataHub host to my host, Both are deployed on a k8s pod. 1. What configurations do I need to add to the helm chart? 2. Where can I find the nginx configuration in the pod? 3. We can’t have ingress enabled in our pods I’ve been told that our organization disabled it but the flag is on, where can I check if it even works? This is what we currently have configured:
Copy code
datahub-frontend:
  enabled: true
  image:
    repository: linkedin/datahub-frontend-react
  ingress:
    enabled: true
    annotations:
      <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx
      <http://kubernetes.io/cors-allow-origin|kubernetes.io/cors-allow-origin>: '*'
      # <http://kubernetes.io/tls-acme|kubernetes.io/tls-acme>: "true"
    hosts:
      - host: datahub-frontend.*.com
        # redirectPaths:
        #   - path: /*
        #     name: ssl-redirect
        #     port: use-annotation
        paths:
          - /
d
Hi, @brainy-tent-14503 might able to speak to this!
b
The cors implementation is part of the play framework on the datahub-frontend component. There is not currently any real cors policy defined. There is some configurability around the cookies here, however full cors support looks to be part of this filter, which is not being included in the base configuration. Its my understanding that the plugin would need to be included at build time here and then additional configuration added for your specific requirements.