Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-LAB-HELP
-
Labels:None
-
Sender Email:
-
HD-Node:Spain
Description
HI, i'm trying to use orion on a localhost. I installed is as follows:
mongo:
image: mongo:3.4
command: --nojournal
orion:
image: fiware/orion
links:
- mongo
ports: - "1026:1026"
command: -dbhost mongo -corsOrigin __ALL
and i used the command: docker-compose up
this solved my problems with the get method, but other operations like post
are returning me control-access-allow-header.
How do i solve this problem?
I'm using: javascript, jQuery.
orion is installed: localhost:1026
my aplication: localhost:63342
Function post->
function postEntities() {
var settings = {
"async": true,
"url": "http://localhost:1026/v2/entities/",
"method": "POST",
"headers":
,
"data": "{\"id\": \"2\", \"type\": \"teste\", \"nome\":
{\"value\": \"Weslan\", \"type\": \"text\"}}"
}
$.ajax(settings).done(function (response)
{ console.log(response); });
}
__________________________________________________________________________________________
You can get more information about our cookies and privacy policies on the following links:
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Privacy_Policy
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Cookies_Policy_FIWARE
Fiware-lab-help mailing list
Fiware-lab-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-lab-help
[Created via e-mail received from: Weslan Rezende <weslan.rezende@gmail.com>]
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-LAB-HELP [ 10279 ] |
Assignee | José Ignacio Carretero Guarde [ jicg ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Summary | [Fiware-lab-help] FIWARE: localhost - Access-Control-Allow-Headers | FIWARE.Request.Lab.FIWARE: localhost - Access-Control-Allow-Headers. |
Attachment | [FIWARE-JIRA] (HELP-13014) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 61256 ] |
Attachment | [FIWARE-JIRA] (HELP-13014) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 63047 ] |
Attachment |
[FIWARE-JIRA] ( |
Attachment |
[FIWARE-JIRA] ( |
Comment |
[ Comment by jira-help-desk@jira.fiware.org : Spam detection software, running on the system "fiware-forge-01", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: [ https://jira.fiware.org/browse/HELP-13014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] FW External User updated (HELP-13082) [SPAM] Website Job Application > > > Key: https://jira.fiware.org/browse/HELP-13014 > Project: Help-Desk > Issue Type: extRequest > Reporter: FW External User > Attachments: [FIWARE-JIRA] (HELP-13082) [Fiware-general-help] [SPAM] Website Job Application > > > Spam detection software, running on the system "fiware-forge-01", has > identified this incoming email as possible spam. The original message > has been attached to this so you can view it (if it isn't spam) or label > similar future email. If you have any questions, see > the administrator of that system for details. > Content preview: [ https://jira.fiware.org/browse/HELP-13082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] FW External User updated HELP-13082: > [Fiware-general-help] [SPAM] Website > Job Application > > > Key: HELP-13082 > URL: https://jira.fiware.org/browse/HELP-13082 > > Project: Help-Desk > Issue Type: extRequest > Components: SPAM > Reporter: > FW External User > Attachments: [FIWARE-JIRA] (HELP-12876) [Fiware-general-help] > [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application, [FIWARE-JIRA] > (HELP-12877) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] > Website Job Application, [FIWARE-JIRA] (HELP-12878) [Fiware-general-help] > [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application, [FIWARE-JIRA] > (HELP-12879) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] > Website Job Application, [FIWARE-JIRA] (HELP-12880) [Fiware-general-help] > [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application, [FIWARE-JIRA] > (HELP-12881) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] > Website Job Application, [FIWARE-JIRA] (HELP-12882) [Fiware-general-help] > [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application, [FIWARE-JIRA] > (HELP-12883) [Fiware-general-help] [SPAM] [...] Content analysis details: (6.9 points, 4.5 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: latedeliver.com] 2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist [URIs: latedeliver.com] 0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1 3.8 HELO_LOCALHOST HELO_LOCALHOST -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS ] |
Comment |
[ Comment by jira-help-desk@jira.fiware.org : Spam detection software, running on the system "fiware-forge-01", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: [ https://jira.fiware.org/browse/HELP-13014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] FW External User updated [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [...] Content analysis details: (6.9 points, 4.5 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: latedeliver.com] 2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist [URIs: latedeliver.com] 0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1 3.8 HELO_LOCALHOST HELO_LOCALHOST -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS ] |
Comment |
[ Comment by jira-help-desk@jira.fiware.org : Spam detection software, running on the system "fiware-forge-01", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: [ https://jira.fiware.org/browse/HELP-13014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] FW External User updated [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [...] Content analysis details: (6.1 points, 4.5 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: latedeliver.com] 2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist [URIs: latedeliver.com] 0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1 3.8 HELO_LOCALHOST HELO_LOCALHOST -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] ] |
HD-Node | Spain [ 10846 ] |
Summary | FIWARE.Request.Lab.FIWARE: localhost - Access-Control-Allow-Headers. | FIWARE.Request.Lab.Spain.FIWARE: localhost - Access-Control-Allow-Headers. |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
1h 8m | 1 | José Ignacio Carretero Guarde | 05/Dec/17 3:56 PM | |||||
|
1s | 1 | José Ignacio Carretero Guarde | 05/Dec/17 3:56 PM | |||||
|
59m 37s | 1 | José Ignacio Carretero Guarde | 05/Dec/17 4:56 PM |
Dear user,
I've tested your example, and I think the error you can be observing is: "Request header field cache-control is not allowed by Access-Control-Allow-Headers in preflight response." — This means that you should remove your "cache-control": "no-cache" and the request can be made. This is related to the javascript and the navigator, not to Orion.
Please, consider using a volume for data in your MongoDB. Docker filesystem doesn't behave well with databases.
Regards,
José Ignacio.