Opened 11 years ago
Closed 11 years ago
#32666 closed defect (bug) (fixed)
QUnit tests notice
| Reported by: | netweb | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Customize | Version: | 4.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
When running grunt qunit or grunt precommit etc the following error is displayed:
XMLHttpRequest cannot load http://example.org/. Origin file:// is not allowed by Access-Control-Allow-Origin.
Attachments (1)
Change History (6)
#4
@
11 years ago
- Keywords has-patch added; needs-patch removed
OK, I have one approach in 32666.diff. The issue is that the customize-settings.js fixture uses example.org in the wp.customize.settings.url settings. The Customizer is trying to load the content for the Customizer Preview. So the quick solution is to just cancel the Ajax request entirely. This eliminates the XHR warning. Thoughts?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is caused by the customizer tests. Looks like this was introduced in [30919].