SchemaStore / schemastore

A collection of JSON schema files including full API
http://schemastore.org
Apache License 2.0
3.05k stars 1.67k forks source link

Schema Request: S3 JSON CORS policies #4118

Open vasudhawaman opened 1 week ago

vasudhawaman commented 1 week ago

Description of the JSON schema.

Issue: Implement/Update CORS Policy for API

Description: We need to implement or update the CORS (Cross-Origin Resource Sharing) policy for our API to improve security and ensure controlled access from trusted domains. The current configuration either doesn't exist or needs enhancements to handle modern web requirements and client requests.

Objectives:

Expected Outcome: Once implemented, the API will handle cross-origin requests securely, only allowing access from specified domains, supporting essential methods and headers, and improving efficiency with preflight request caching.

Supporting information.

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManageCorsUsing.html

Are you making a PR for this?

Yes, I will create a PR.

hyperupcall commented 6 days ago

Thanks for raising this - A new configuration or an edit to an existing configuration would be welcome>