Closed jayasithu closed 2 years ago
This issue is NOT closed with a proper Resolution/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Resolution/Cannot Reproduce - Issue cannot be reproduced.
- Resolution/Duplicate - Issue is already reported before.
- Resolution/Fixed - Issue has already been fixed.
- Resolution/Answered - Issue has already been answered.
- Resolution/Invalid - Issue is invalid.
- Resolution/Not a bug - Issue is not a bug.
- Resolution/Postponed - Issue is postponed.
- Resolution/Won’t Fix - Issue won't be fixed.
Description
When we set the enable = false in the deployment toml file under [apim.cors] and disable CORS globally we can observe The following error when invoking APIs.
As per our observations, the issue occurs due to engaging the APIAuthenticationHandler handler before the CORS request handler in the API invocation flow as we have disabled CORS globally and the CORS handler is removed from all the APIs. We checked the API artifact by using the gateway REST API[1] and we were able to see that the following handler is missing,
and the is present. According to the correct API invocation flow, the CORS handler should be present before the APIAuthenticationHandler but when we disable the CORS globally the CORS Handler gets removed from all the APIs and it causes this error.
Steps to Reproduce
Affected Component
APIM
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response