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

@seinecle seinecle commented Feb 24, 2020

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

This comment has been minimized.

Copy link

@rosiech 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

This comment has been minimized.

Copy link
Author

@seinecle seinecle commented Mar 12, 2020

Thx!

@seinecle seinecle closed this Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.