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

Enable CORS for OpenAPI specs files #260

Open
Ryandaydev opened this issue Apr 12, 2019 · 4 comments
Open

Enable CORS for OpenAPI specs files #260

Ryandaydev opened this issue Apr 12, 2019 · 4 comments
Labels
APIs Issues related the API Directory or API docs. on hold

Comments

@Ryandaydev
Copy link
Contributor

When a page tries to access the OpenAPI specs from our federalist preview, it gets the following CORS error:

Fetch errorFailed to fetch https://federalist-proxy.app.cloud.gov/preview/gsa/open-gsa-redesign/apidocs-add-swagger-rd-4-2019/api/sample-api/v1/openapi.yaml Fetch errorPossible cross-origin (CORS) issue? The URL origin (https://federalist-proxy.app.cloud.gov) does not match the page (https://petstore.swagger.io). Check the server returns the correct 'Access-Control-Allow-*' headers.

URL to reproduce it:
https://petstore.swagger.io/?url=https://federalist-proxy.app.cloud.gov/preview/gsa/open-gsa-redesign/apidocs-add-swagger-rd-4-2019/api/sample-api/v1/openapi.yaml

@Ryandaydev Ryandaydev added the APIs Issues related the API Directory or API docs. label Apr 12, 2019
@jfredrickson5
Copy link

Awaiting changes to Federalist before we can implement this. We need to follow up with the Federalist team in a couple of months.

@chinchalinchin
Copy link

lol. looks like someone copied and pasted straight from the swagger docs.

@chula3003
Copy link

When a page tries to access the OpenAPI specs from our federalist preview, it gets the following CORS error:

Fetch errorFailed to fetch https://federalist-proxy.app.cloud.gov/preview/gsa/open-gsa-redesign/apidocs-add-swagger-rd-4-2019/api/sample-api/v1/openapi.yaml Fetch errorPossible cross-origin (CORS) issue? The URL origin (https://federalist-proxy.app.cloud.gov) does not match the page (https://petstore.swagger.io). Check the server returns the correct 'Access-Control-Allow-*' headers.

URL to reproduce it: https://petstore.swagger.io/?url=https://federalist-proxy.app.cloud.gov/preview/gsa/open-gsa-redesign/apidocs-add-swagger-rd-4-2019/api/sample-api/v1/openapi.yaml

@chula3003
Copy link

  • open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIs Issues related the API Directory or API docs. on hold
Projects
None yet
Development

No branches or pull requests

4 participants