amazon web services - API Gateway CORS Issue -


so have cors enabled going through basic setup given aws gateway. api need allow control origins requests , allow credentials.

here looks like

enter image description here

the issue may have guessed setup not allowed cors, can not have wildcard origin , have credentials true. work around grab requesting domain , add origin header. more or less want do. don't know how information , add mapping value. api gateway store information , how it?

update: have pass through http header host lambda function should have mentioned earlier, have tried implementing answer below cannot access header pass lambda function using instructions provided. more assistance appreciated.

jurgen api gateway here. reporting issue. there no simple way set via "enable cors" feature in console. however, looking improve user experience use case.

as potential workaround, passthrough origin header client backend , parse / create value access-control-allow-origin header there. map header in integration response 'integration.response.header.access-control-allow-origin' access-control-allow-origin , return client.

hope helps.

best, jurgen


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -