ampproject / ampproject/amphtml
Receiving error 'Source origin is not allowed in' on amp-list load-more using load-more-bookmark
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
## What's the issue?
I can't tell if this is a bug or if I'm doing something wrong.
I have a working amp-list implementation using server-side filtering at https://staging.caymanmag.com/work/finding-a-job, but I'm not able to get the infinite scroll to work with the `load-more="auto"` attribute and `load-more-bookmark`.
The Console error I'm receiving is 'Source origin is not allowed in' but I don't receive a CORS errors when not using the `load-more` attribute.
I wonder if it's due to the bookmark value: `load-more-bookmark="meta.pagination.links.next"` being used? It looks like the `&page=2` attribute is being added to the end of the query string.
## How do we reproduce the issue?
https://staging.caymanmag.com/work/finding-a-job
1. Before load more is initiated

2. After load more is initiated

## What browsers are affected?
All browsers
## Which AMP version is affected?
Powered by AMP ⚡ HTML – Version 1910071803120 https://staging.caymanmag.com/work/finding-a-job
Contributor guide
Research direction
Reproduce the failure at the staging URL with amp-list, load-more="auto", and load-more-bookmark="meta.pagination.links.next"; compare the console and network behavior with and without load-more. Trace the AMP version 1910071803120 behavior for the generated next URL and source-origin check. Done means identifying whether the bookmark-generated URL is rejected and documenting the required correction or configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100