Problem/Motivation
Appending "Do not include trailing slashes with URLs" to the instructional comments will eliminate much frustration with allowedOrigins in services.yml.
Steps to reproduce
1. add urls to the allowedOrigins section of services.yml
2. include a slash at the end of each url
3. note the CORS failure
4. remove the trailing slash
5. note the CORS success
Proposed resolution
Adjust comment to say `# Configure requests allowed from specific origins. Do not include trailing slashes with URLs.
Remaining tasks
Review/improve merge request
User interface changes
Code comment only
API changes
None
Data model changes
None
Release notes snippet
Improve instructional comment to include specific requirements for urls.
Issue fork drupal-3305748
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3305748-improve-instructions-for
changes, plain diff MR !2699
Comments
Comment #2
kay_v commentedThis issue is a good candidate for a 'novice' reviewer.
Comment #3
kay_v commentedComment #4
kay_v commentedComment #5
mahesh bandhiya commentedtested by adding trailing slash. instruction is helpful
Comment #7
spokjeOpened Merge Request with the changes that were already in the branch, so the changes can be tested.
Comment #8
alexpottCommitted and pushed bc1a8d8493 to 10.1.x and ecba971698 to 10.0.x and 9685ecbeac to 9.5.x. Thanks!
Backported to 9.5.x as this is a documentation improvement.