What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Anyone else having issues with the summary redirect to the place order step in the checkout? Especia
Anyone else having issues with the summary redirect to the place order step in the checkout? Especially in chrome and edge.
We have seen some strange behavior and could track it down to the browser denying access to forms that do a redirect afterwards, as done by the summary step in the checkout.
This is most likely caused by https://github.com/spryker/application/commit/92aaf096966a0724e726c6744533f900a924316d, where form-action: 'self'
was added, among other directives, to the Content-Security-Policy Header.
There is a year old discussion, which still has no resolution, by the W3C (https://github.com/w3c/webappsec-csp/issues/8) about chrome and probably all other webkit based browsers, do implement the behavior a little bit strange, blocking all form that redirect after sending the form data.
MDN has a warning about this behavior: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/form-action
@valerii.trots / @florian.scholz Can you confirm that the checkout is broken in the demoshop as well? (https://github.com/spryker/application/releases/tag/3.28.1 is causing the issue).
If so I assume this needs a hotfix as it will impact all customers who do the patch update and might brake their checkouts as well. I'm also questioning why changing a security header, which has significant impact on applications, is a patch and not at least a minor.
Comments
-
Can be fixed by removing the
form-action: 'self'
from the CSP header:<?php namespace Pyz\Yves\Application; use Spryker\Yves\Application\ApplicationConfig as SprykerApplicationConfig; class ApplicationConfig extends SprykerApplicationConfig { protected const HEADER_CONTENT_SECURITY_POLICY_VALUE = 'frame-ancestors \'self\'; sandbox allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation; base-uri \'self\';'; }
0 -
The issue is known and there is a PR open to be pushed through usual release process.
0 -
should be this the fix -> https://github.com/spryker/application/releases/tag/3.30.0
0 -
Which isn't working for the local environment.
After I added$config[KernelConstants::DOMAIN_WHITELIST][] = $config[ApplicationConstants::BASE_URL_YVES];
to the
config_default-docker.dev.php
the header seems to be correct at the first look:form-action 'self' [www.computop-paygate.com](http://www.computop-paygate.com) <https://yves.de.helukabel.local>
But still the redirect from the confirm to the place order step is blocked in chrome.
As it isn't working locally I didn't even tried to roll out this patch to staging or production.
0 -
Where did u configured
[www.computop-paygate.com](http://www.computop-paygate.com)
? In Domain Whitelist?0 -
That's coming from the
config_default.php
0 -
ok.. because
$config[KernelConstants::DOMAIN_WHITELIST][] = $config[ApplicationConstants::BASE_URL_YVES];
does not seems to have this configured...
0 -
and u don't need yves url there
0 -
I do need the yves url, because this is the basic problem with the redirects.
As long as we only have'self'
chrome and edge do not allow a redirect as a result of a form at all.
So if we add the yves url to the whitelist it should allow a redirect within the yves domain as result of a form, which is necessary to reach the place-order step0 -
u have to configure computop-paygate domain in domain whitelist.. so i have understood..
can u please send me a screenshot of form taken from inspector..?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 78 Spryker News
- 936 Developer Corner
- 793 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 27 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random