Kong / kong

🦍 The Cloud-Native API Gateway and AI Gateway.
https://konghq.com/install/#kong-community
Apache License 2.0
39k stars 4.78k forks source link

[feat] cors plugin add a config field: override_origin #2759

Closed WALL-E closed 3 years ago

WALL-E commented 7 years ago

A boolean value that instructs the plugin to set the config.origins from request headers "Origin" as the value.

The user has the ability to turn off this feature.

https://github.com/Mashape/kong/blob/master/kong/plugins/cors/handler.lua#L69L82

p0pr0ck5 commented 7 years ago

@WALL-E would you consider submitting a PR for this functionality?

WALL-E commented 7 years ago

@p0pr0ck5 OK