-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS Error despite thoroughly reading CDK docs, CDK docs error in the public reference #3448
Comments
The Python transliterator failed to properly account for maps when transliterating keys, resulting in name-mangling being applied on these when it should not have been. This PR adds a new `inMap` context entry to track whether a property assignment must be interpreted as a map key-value entry, or an actual keyword/value mapping; and in that case circumvents the mangling. Added a new test to verify that such map literals render appropriately using a key similar to that which caused #3448. Fixes #3448
Hey! Thanks for reporting this! There is indeed a bug in the Python transliteration suite which will cause it to incorrectly translate map keys in this particular context. I've issued a PR with a fix. |
The Python transliterator failed to properly account for maps when transliterating keys, resulting in name-mangling being applied on these when it should not have been. This PR adds a new `inMap` context entry to track whether a property assignment must be interpreted as a map key-value entry, or an actual keyword/value mapping; and in that case circumvents the mangling. Added a new test to verify that such map literals render appropriately using a key similar to that which caused #3448. Fixes #3448 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
|
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)Go
General Information
What is the problem?
The documentation about the AWS CDK for python when specifying the integration response, and method response wrongly put an extra under score on the "_access-_control-_allow-_origin", instead, the correct naming should be "Access-Control-Allow-Origin" which caused the customer's application not working even after throughly read the CDK docs.
I have attached the screen cap that customer shared with the ticket. The extra underscore could affect other parameter as well across the documentation.
Verbose Log
[<!--]
jsii
: please provide the output of runningjsii
withthe
--verbose
option.jsii-pacmak
: please provide the output of runningjsii-pacmak
with the--verbose
option.running your program with the
JSII_DEBUG=1
environment variable being set.If the output is very large, you may store it in a gist. In any case,
please review the contents of the log you are about to submit and edit any
confidential information out.
-->
The text was updated successfully, but these errors were encountered: