For some reason the delete function does not work in Tyk Developer Portal. I have also tried the same function in a REST client application to test the function and it works correctly. It looks like the developer portal does not work correctly and the gateway itself works fine.
Thanks for your reply. The following error is thrown in my chrome console: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin 'http://****:3000’ is therefore not allowed access.
I found the issue. I had to allow the method DELETE in the specific API. I don’t know the technical reason why I have to allow this method. Martin, can you explain this?
This is a CORS error, which is a standard used to secure XMLHttpRequests in browsers to avoid malicous scripts making requests that they are not specifically authorised to do. There’s an extensive discussion about it here and how it works with Tyk.