bug: Access to script at been blocked by CORS policy
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- tooling
Research direction
Reproduce the issue in the Requestly Chrome extension by creating a redirect rule for a script and reloading the page. Start at the redirect-rule handling for the reported assets/reporting.js to trace the localhost/reportinglocalhost.js request; done means the redirect no longer triggers the reported CORS denial without disabling Chrome security.
Written by the indexing model from the issue text.
Description
Describe your issue?
I've seen this issue working locally with the Requestly extension in Chrome.
Access to script at been blocked by CORS policy. Permission was denied for this request to access http://localhost/reportinglocalhost.js redirected from https://djm113gw5h5.cloudfront.net/assets/reporting.js) from origin https://ww.<my-site>.net
It's almost as if Chromium is tightening up this rule somehow.
For what it's worth I can circumvent it by launching chrome like this, but it feels wrong:
open -na "Google Chrome" --args \
--user-data-dir="/tmp/chrome-dev" \
--disable-web-security \
--disable-site-isolation-trials
Repro steps
- Use Requestly in Chrome
- Set up a redirect rule
- Reload
What Requestly tool were you using?
- Extension
- Desktop-App
- Android SDK
- Selenium
Your Environment
latest
Requestly Version
latest
Error screenshot
No response
- Dominant language
- TypeScript
- Stars
- 87
- Forks
- 23
- Avg merge
- 14h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from requestly/interceptor
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
requestly/interceptor#121 ·
-
migration:misfiled-interceptor
Difficulty 5/5 Over a week Newbie friendliness 38/100
requestly/interceptor#27 · 2 comments ·
-
migration:misfiled-interceptor
Difficulty 3/5 1-2 days Newbie friendliness 45/100
requestly/interceptor#28 · 1 comment ·
-
migration:misfiled-interceptor type:bug
requestly/interceptor#29 · 2 comments · 1 assignee ·
-
requestly/interceptor#30 · 2 comments · 2 assignees ·
All issues in requestly/interceptor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·