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

Update CORS configurations #2101

Merged

Conversation

kalaputsik
Copy link
Contributor

@kalaputsik kalaputsik commented Aug 17, 2023

PR Description

Ticket - https://spryker.atlassian.net/browse/SC-4807

Checklist

  • I agree with the Code Contribution License Agreement in CONTRIBUTING.md

@kalaputsik kalaputsik requested a review from a team as a code owner August 17, 2023 17:37
$config[GlueApplicationConstants::GLUE_APPLICATION_DOMAIN] = 'https://glue.mysprykershop.com';
$config[GlueApplicationConstants::GLUE_APPLICATION_CORS_ALLOW_ORIGIN] = 'https://glue.mysprykershop.com';
$config[GlueApplicationConstants::GLUE_APPLICATION_REST_DEBUG] = false;
Add the necessary parameters to `deploy.yml`:
Copy link
Collaborator

Choose a reason for hiding this comment

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

What are the necessary param?

@@ -78,7 +99,22 @@ To make sure that the CORS headers are set up correctly, send the OPTIONS reques

* Verify that the `access-control-allow-origin` header is present and is the same to the one set in `config`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the config in this context?

@@ -78,7 +99,22 @@ To make sure that the CORS headers are set up correctly, send the OPTIONS reques

* Verify that the `access-control-allow-origin` header is present and is the same to the one set in `config`.
* Verify that the `access-control-allow-methods` header is present and contains all available methods.
Copy link
Collaborator

Choose a reason for hiding this comment

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

How do we know which methods are available?

@andriitserkovnyi andriitserkovnyi self-assigned this Aug 29, 2023
@andriitserkovnyi andriitserkovnyi added new PR contains a new document updated PR contains meaningful changes to some document labels Aug 29, 2023
@andriitserkovnyi andriitserkovnyi merged commit 0b32609 into master Sep 21, 2023
15 checks passed
@andriitserkovnyi andriitserkovnyi deleted the feature/sc-4807/define-cors-allow-origin-via-deploy-yml branch September 21, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new PR contains a new document updated PR contains meaningful changes to some document
Development

Successfully merging this pull request may close these issues.

2 participants