zowe / zowe/api-layer

Support CORS on AT-TLS

Open
#4,322 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Priority: High size/M
Dominant language
Java
Stars
92
Forks
81
Avg merge
1d 9h
Merged PRs (30d)
46

Description

Is your feature request related to a problem? Please describe.
AT-TLS support for UIs currently requires additional configuration on the services' side if they are going to send requests affected by CORS.

i.e. they need to provide additional metadata:

        "apiml.corsEnabled": "true",
        "apiml.corsAllowedOrigins": <gateway_url>,<apicatalog_url>

This is because in API ML perspective the server runs with SSL disabled under these conditions and it is a different URL as the one coming from the browser on AT-TLS (https)

This is something we also use as a workaround for our own applications to work with AT-TLS (for the API Catalog)

This is also not properly documented for extenders.

Describe the solution you'd like

API ML should take into account the AT-TLS settings, which it already uses, to handle this scenario without the need to have additional metadata from services.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how API ML reads AT-TLS settings and how it currently handles CORS metadata for services. Confirm the behavior with AT-TLS requests and existing API Catalog applications; the work is done when CORS works without service-provided metadata and the AT-TLS requirement is documented for extenders.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.