← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1861334] Re: cors config defaults not used when Glance is run as WSGI app

 

Reviewed:  https://review.opendev.org/704882
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=9a6fcc2ea52f38ab971551734244e45a91e5b074
Submitter: Zuul
Branch:    master

commit 9a6fcc2ea52f38ab971551734244e45a91e5b074
Author: Radosław Piliszek <radoslaw.piliszek@xxxxxxxxx>
Date:   Wed Jan 29 21:27:28 2020 +0100

    Use default cors config also when run as wsgi app
    
    This fixes Glance CORS behind uWSGI as used in devstack.
    
    Change-Id: If82d9b396afd87c65e035868b595ff5683cb19f6
    Closes-bug: #1861334


** Changed in: glance
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1861334

Title:
  cors config defaults not used when Glance is run as WSGI app

Status in Glance:
  Fix Released

Bug description:
  Glance logs these:
  Jan 25 10:44:52.170319 ubuntu-bionic-rax-ord-0014151033 devstack@g-api.service[11714]: DEBUG oslo_middleware.cors [-] Request header 'x-auth-token' not in permitted list: ['ACCEPT', 'ACCEPT-LANGUAGE', 'CONTENT-TYPE', 'CACHE-CONTROL', 'CONTENT-LANGUAGE', 'EXPIRES', 'LAST-MODIFIED', 'PRAGMA'] {{(pid=11715) _apply_cors_preflight_headers /usr/local/lib/python3.6/dist-packages/oslo_middleware/cors.py:329}}

  It looks like cors config defaults are not picked up when Glance is
  run as WSGI app, e.g. behind uWSGI (as devstack does).

  So far verified on master (Ussuri).

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1861334/+subscriptions


References