Can not try api on apigee edge portal

Not applicable

I create an api and publish to the portal, try it out, it can not work out

6571-screen-shot-2018-03-13-at-31349-pm.png

I suppose it should call like this:

6572-screen-shot-2018-03-13-at-35838-pm.png

Can somebody tell me the reason?

Thanks.

0 2 100
2 REPLIES 2

You will need to enable CORS on your proxies, this can be done with Shared Flows and Flow Hooks.

If you run trace in another window, you should see the OPTIONS request which you need to respond with 200 and appropriate headers.

Hi Kurt,

Thanks for reply,

I just find the reason, It was because of I didn't add host to the API spec, so the portal use xxx.apigee.io as the host of API, After I add the xxx-test.apigee.net as the hostname to the spec, it works.