Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

CORS proxy for parser #44

Description

@antoniogarrote

There's already a workaround for this.

I'm opening the issue for documentation and as a reminder of that we need a better solution.

Use of a proxy to resolve URL requests in the parsers is supported using a global variable.

window.JS_USE_PROXY = "http:/path.to/$URL"

Once this variable has been declared, requests will be send to the URL in the global variable where$URL is a placeholder for the position of the URL to request.
The URL does not need to be URL encoded. The library will take care of URL encoding it.

See this commit for more information: bb60502

Also check this commit in the AMF-playground to see how it can be enabled:

aml-org/playground@88bc420

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions