Configuring for Multiple methods


#1

If we have a generic api configured just on the listen path with no endpoints specified, how can I configure for multiple methodsl; get post delete etc.
I see there is a place to add get, post, delte, put within the cors settings is that how I would handle this?


#2

By default Tyk will proxy all methods and all paths unless you set up a whitelist.

If you are managing CORS at the gateway level then you can set the methods in the advanced settings section of your API under CORS and then there is a section where you can add the methods you want to have allowed on the API.

This usually only affects SPWA though.