[Fiware-general-help] [FIWARE-JIRA] (HELP-13014) FIWARE.Request.Lab.Spain.FIWARE: localhost - Access-Control-Allow-Headers.

Backlog Manager (JIRA) jira-help-desk at jira.fiware.org
Sat Jan 20 18:11:00 CET 2018


     [ https://jira.fiware.org/browse/HELP-13014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Backlog Manager updated HELP-13014:
-----------------------------------
    Summary: FIWARE.Request.Lab.Spain.FIWARE: localhost - Access-Control-Allow-Headers.  (was: FIWARE.Request.Lab.FIWARE: localhost - Access-Control-Allow-Headers.)

> FIWARE.Request.Lab.Spain.FIWARE: localhost - Access-Control-Allow-Headers.
> --------------------------------------------------------------------------
>
>                 Key: HELP-13014
>                 URL: https://jira.fiware.org/browse/HELP-13014
>             Project: Help-Desk
>          Issue Type: extRequest
>          Components: FIWARE-LAB-HELP
>            Reporter: FW External User
>            Assignee: José Ignacio Carretero Guarde
>         Attachments: [FIWARE-JIRA] (HELP-13014) FIWARE.Request.Lab.FIWARE_ localhost - Access-Control-Allow-Headers.
>
>
> 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": {
>             "content-type": "application/json",
>             "cache-control": "no-cache"
>         },
>         "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 at lists.fiware.org
> https://lists.fiware.org/listinfo/fiware-lab-help
> [Created via e-mail received from: Weslan Rezende <weslan.rezende at gmail.com>]



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Fiware-general-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy