awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
928 stars 400 forks source link

Not displaying the "OPTION" method of an API in the portal #349

Closed seinecle closed 4 years ago

seinecle commented 4 years ago

When CORS is enabled on API endpoints, it creates an OPTION method for the resources. This OPTION method appears in the dev portal, even if there is no use for the end user of the API.

Could it be possible to disable the display of OPTION methods in the portal?

rosiech commented 4 years ago

Go to S3 and find the bucket that the dev portal is in. In the custom content folder download the styles.css file and edit it to include:

.opblock-options { display: none; }

and upload it again.

seinecle commented 4 years ago

Thx!