Skip to content

Conversation

@pkosiec
Copy link
Collaborator

@pkosiec pkosiec commented Nov 29, 2021

Description

Changes proposed in this pull request:

  • Enable CORS for Capact Gateway Ingress

It enables Gateway GraphQL API to be consumed by UIs deployed anywhere by default only for local installation.

  • To discuss, which default values should we set: should we enable CORS by default and allow all origins? Or keep such overrides for local Capact for convenience if someone wants to develop UI for it?

@pkosiec pkosiec added the enhancement New feature or request label Nov 29, 2021
@pkosiec pkosiec added WIP Work in progress area/gateway Relates to Gateway labels Nov 29, 2021
@pkosiec pkosiec removed the WIP Work in progress label Nov 30, 2021
Copy link
Collaborator

@mszostok mszostok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I would vote to allow all origins only in local development. It can be easily added to our CLI overrides:

capactLocalClusterOverridesYAML = `
global:
domainName: "capact.local"
`

@pkosiec pkosiec merged commit 5c7aec1 into capactio:main Dec 2, 2021
@pkosiec pkosiec deleted the configure-cors branch December 2, 2021 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/gateway Relates to Gateway enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants