Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
seinecle opened this issue Feb 24, 2020 · 2 comments
Closed

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

seinecle opened this issue Feb 24, 2020 · 2 comments

Comments

@seinecle
Copy link

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
Copy link

rosiech commented Mar 10, 2020

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
Copy link
Author

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants