diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2017-11-01 08:39:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 08:39:18 -0700 |
commit | 6793bb84ac9d9f9ad7231d9188f886b1afc47754 (patch) | |
tree | 1158956de189aa550a3cb44eae6621b7dc2a164b /roles/contiv/files | |
parent | b4521f75238f6c4273b57bbfad07c3404741e210 (diff) | |
parent | 8480ab43c99ede8bad9dc8ea27f676dc2d6af446 (diff) | |
download | openshift-6793bb84ac9d9f9ad7231d9188f886b1afc47754.tar.gz openshift-6793bb84ac9d9f9ad7231d9188f886b1afc47754.tar.bz2 openshift-6793bb84ac9d9f9ad7231d9188f886b1afc47754.tar.xz openshift-6793bb84ac9d9f9ad7231d9188f886b1afc47754.zip |
Merge pull request #5264 from AlexanderZagaynov/cors_escape
Automatic merge from submit-queue.
escape corsAllowedOrigins regexp strings and anchor them
`corsAllowedOrigins` parameter got interpreted by OpenShift/Kubernetes as a regular expression (there is a bug about that: https://bugzilla.redhat.com/show_bug.cgi?id=1482903).
It leads to some vague behaviour, like for `127.0.0.1` value `127a0b0c1` will be matched as valid, as well as `localhost.example.com` for `localhost`.
I've added regexp escaping here, as well as value anchoring to the begin and end of the string.
I've also added case-insensitive flag `(?i)` to match values like `LocalHost` for `localhost`.
Diffstat (limited to 'roles/contiv/files')
0 files changed, 0 insertions, 0 deletions