IBM Support

IT28413: WHILE CALLING API FROM ASSEMBLY, IT SHOWS CORS ERROR AND 400 BAD REQUEST

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • In Assembly Tools, we are not responding correctly to an
    OPTIONS request when path parameters in Header is set to
    required.
    This is request produced by the browser/API Assembly Test tool
    when initially making CORS OPTIONS.
    
    Instead of responding with 200OK with Access-Control-* headers,
    we respond with 400 Bad Request, missing required parameters.
    APIC & DP: 2018.4.1.3 & 2018.4.1.1.
    Test in: API Gateway
    Methods: GET, POST (rest untested)
    

Local fix

  • The only workaround is to not use required
    parameters OR to somehow avoid doing cross-origin requests.
    

Problem summary

  • When user sends the OPTIONS request with the header parameter
    which is defined as required, it shows a CORS error.
    

Problem conclusion

Temporary fix

  • N/A
    

Comments

APAR Information

  • APAR number

    IT28413

  • Reported component name

    DATAPOWER

  • Reported component ID

    DP1234567

  • Reported release

    18X

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-03-11

  • Closed date

    2019-03-22

  • Last modified date

    2019-03-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DATAPOWER

  • Fixed component ID

    DP1234567

Applicable component levels



Document information

More support for: IBM DataPower Gateways
General

Software version: 18X

Reference #: IT28413

Modified date: 26 March 2019