Error 404 "Access-Control-Allow-Origin"
[email protected] Tue, 16 Jun 2015 23:51:35 -0700 (PDT)
| Newsgroups | gmane.comp.bug-tracking.bugzilla.devel |
|---|---|
| Message-ID | <[email protected]> |
XMLHttpRequest cannot load https://landfill.bugzilla.org/rest/login?login=userName&password=pwd. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://..' is therefore not allowed access. The response had HTTP status code 404.
When i try to login from my javascript code.
$http.get(https://landfill.bugzilla.org/rest/login?login=userName&password=pwd);
I read somewhere that you have to supply the http header with credentials
when requesting your html.
i used a node module for this issue named CORS which enables you to perform cross domain requests.
https://www.npmjs.com/package/cors
my server :
var express = require('express');
var cors = require('cors');
var path = require('path');
var app = express();
app.use(cors());
app.use(express.static(path.resolve(__dirname, 'client')));
app.listen(8080);
I would appreciate any help in resolving this issue. 10x.
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla-CzyLcWPZiU5YsZ3hbOqMTti2O/[email protected]
https://lists.mozilla.org/listinfo/dev-apps-bugzilla
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=gcbd-developers-Uylq5CNFT+jYtjvyW6yDsg@public.gmane.org>