Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

adding additional CORS header for Curate integration #71

Merged
merged 1 commit into from
May 6, 2019

Conversation

ialford
Copy link
Contributor

@ialford ialford commented May 6, 2019

For the CurateND Image Viewer integration, we discovered that the headers being sent by the application were not the Authorization headers being used elsewhere, but rather were X-CSRF-Token.

This updates the Manifest bucket to allow these CORS headers so Curate can show the ImageViewer in an iFrame.

- Id: CSRFCorsHeader
AllowedHeaders:
- X-CSRF-Token
AllowedMethods:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add HEAD and OPTIONS? Or are those implicitly a subset of GET?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OPTIONS is not supported by S3 configurations - we can add HEAD without too much of a problem. See: AWS S3 CloudFormation Reference

@ialford ialford merged commit 4d61ca9 into master May 6, 2019
@jeremyf jeremyf deleted the MEL-378-CORS-CSRF branch May 6, 2019 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants