Hi All,
We want to configure CORS for one of the spring-boot bound app to gateway. we did following attempt but none of them worked.
Could anyone please help us on this ?
Perhaps you should use "allowed-origin-patterns: ["*"]" rather than "allowed-origins: ["*"]"
Hi @jgbutler
It did not work. do we need to change some configuration before running this ?
cf update-service gateway -c '{ "cors": { "allowed-origin-patterns": ["*"], "allowed-methods":[ "GET", "OPTIONS"] }}'
Updating service instance gateway as -------...
FAILED
Server error, status code: 502, error code: 10001, message: Service broker error: Service broker parameters are invalid: #/cors: extraneous key [allowed-origin-patterns] is not permitted