You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cors mapping resource no longer supports comma separated lists, only YAML array lists. This change came about with the AES update from 1.9 to 1.10. The following configurations written will show in detail what is and is not allowed regarding configurations with lists:
(Example of comma separated list, as seen in origins. This is not supported)
Test the cors mapping using the following command: curl -kv https://{AES_LOADBALANCER_EXTERNAL_IP}/cors/ -H "Origin: http://foo.example"
You should get a fair bit of information printed back, but specifically pay attention to the part listed below, found right above the response from the server:
If curious about testing, you can either switch to AMBASSADOR_LEGACY_MODE or AES version 1.9, and test this mapping with the curl statements, and get the above output.
Versions:
Ambassador: 1.13.8
Kubernetes environment: Kubeception
Version 1.17
Notes
Nothing additional to report at this time
The text was updated successfully, but these errors were encountered:
w-h37
changed the title
Cors Origin Comma Separated Lists Don't Work
Regression: Cors Origin Comma Separated Lists Don't Work
Jul 15, 2021
Summary
The cors mapping resource no longer supports comma separated lists, only YAML array lists. This change came about with the AES update from 1.9 to 1.10. The following configurations written will show in detail what is and is not allowed regarding configurations with lists:
(Example of comma separated list, as seen in origins. This is not supported)
(Example of YAML array separated list, as seen in origins. This is supported)
It is worth noting that AMBASSADOR_LEGACY_MODE does allow the use of comma separated lists, and does serve as a workaround to this issue.
Required Feature
Cors mapping resources should include the ability to read lists of origins using a comma to separate objects
Replicator
AES 1.13.8 installed with Helm
Deploy the quote service from the AES quickstart guide
Create a cors mapping resource:
curl -kv https://{AES_LOADBALANCER_EXTERNAL_IP}/cors/ -H "Origin: http://foo.example"
You should get a fair bit of information printed back, but specifically pay attention to the part listed below, found right above the response from the server:
In the previous step, had the comma separated list been read correctly, you should have gotten the following response back from the curl statement:
If curious about testing, you can either switch to AMBASSADOR_LEGACY_MODE or AES version 1.9, and test this mapping with the curl statements, and get the above output.
Versions:
Notes
Nothing additional to report at this time
The text was updated successfully, but these errors were encountered: