Skip to content

XHR Cross Domain Problems in fastSync #5

@shaglama

Description

@shaglama

fastSync uses XmlHttpRequest to load files asynchronously and then runs them in the correct order as they finish downloading. It works great with files on the same domain and also with files from domains with appropriate "Access-Control-Allow-Origin" headers sent from server. However, resources on other domains without these headers cannot be downloaded as it violates same origin security policy of browsers. This issue does not seem to affect sync or asyn mode loading, probably because they load files by appending a script tag with the src attribute instead of loading the file and then adding its contents to a script tag as fastSync does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions