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

XMLHttpRequest Search with Method OPTIONS #248

Open
Tracked by #5523
e-dewailly opened this issue Mar 8, 2016 · 1 comment
Open
Tracked by #5523

XMLHttpRequest Search with Method OPTIONS #248

e-dewailly opened this issue Mar 8, 2016 · 1 comment
Labels
API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) 🔎 Search

Comments

@e-dewailly
Copy link

e-dewailly commented Mar 8, 2016

What

Part of

@teolemon teolemon added the API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) label Mar 16, 2016
@e-dewailly
Copy link
Author

Example

if($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
    header('Access-Control-Allow-Origin: *');
    header('Access-Control-Allow-Headers: X-Requested-With');
    header("HTTP/1.1 200 OK");
    die();
}

@teolemon teolemon modified the milestone: API May 12, 2016
@teolemon teolemon added API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) and removed API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) labels Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) 🔎 Search
Projects
Status: To discuss and validate
Status: To be triaged
Development

No branches or pull requests

2 participants