Hello Kong team!
I have setup Kong Developer Portal, working with a Mocking plugin.
All is fine and my Dev Portal schema “Try it out” for an endpoint works fine, after I have added CORS plugin, and I see my Mock response received.
However, I wanted to add a Routing for this endpoint, and I added in my Route a “Header” named “Mock” and value “true”. And after this change, even tough I have added the “Exposed headers” → “Mock”, now the “Try it Out” is returning me a CORS error: Failed to fetch.
Possible Reasons:
- CORS
- Network Failure
- URL scheme must be “http” or “https” for CORS request… Please see attached screenshots