Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate CORS for the API #12

Open
Omertron opened this issue Jun 4, 2013 · 1 comment
Open

Investigate CORS for the API #12

Omertron opened this issue Jun 4, 2013 · 1 comment

Comments

@Omertron
Copy link
Member

Omertron commented Jun 4, 2013

Will YAMJ v3 support Cross-Origin Resource Sharing by setting the Access-Control-Allow-Origin header, so web-apps (such as iSkin2) can read the responses of the AJAX calls made to the API even if they weren't loaded from the same IP address and port as the API?

http://en.wikipedia.org/wiki/Cross-origin_resource_sharing

The easiest would be set the value of the header to *, but you could be more specific than that if you want, even make it configurable.

Another possibility would be to serve the web-apps themselves through the API, so the AJAX request would satisfy the same-origin policy.

@jluc2808
Copy link
Member

priority 3

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

No branches or pull requests

2 participants