Open Ryandaydev opened 5 years ago
Awaiting changes to Federalist before we can implement this. We need to follow up with the Federalist team in a couple of months.
lol. looks like someone copied and pasted straight from the swagger docs.
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
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