•  
      request #10777 PHP 5.6 + nginx: missing CORS headers on api
    Infos
    #10777
    Thomas Gorka (tgorka)
    2017-10-27 15:04
    2017-10-25 17:01
    11007
    Details
    PHP 5.6 + nginx: missing CORS headers on api

    We have an error when querying POST /tokens REST route:

    Failed to load ******/api/v1/tokens: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    Origin 'https://tuleap-web.tuleap-aio-dev.docker' is therefore not allowed access.
    

    ​Preflight check is failing because CORS headers are missing server-side. Other routes might be impacted (the error is thrown when we attempt to log in via one of our angular apps).

    API
    development
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-10-27
    Attachments
    Empty
    References
    Referenced by request #10777

    Follow-ups

    User avatar
    Thomas Gorka (tgorka)2017-10-25 17:16
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    Thomas Gorka (tgorka)2017-10-25 17:15
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes