pyramid-cubicweb #4849874 cors parameters unusable [resolved]

allow-headers and allow-methods are not usable:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/waitress/channel.py", line 337, in service
    task.service()
  File "/usr/local/lib/python2.7/dist-packages/waitress/task.py", line 173, in service
    self.execute()
  File "/usr/local/lib/python2.7/dist-packages/waitress/task.py", line 392, in execute
    app_iter = self.channel.server.application(env, start_response)
  File "/usr/local/lib/python2.7/dist-packages/wsgicors.py", line 89, in __call__
    start_response(status, resp)
  File "/usr/local/lib/python2.7/dist-packages/waitress/task.py", line 376, in start_response
    'Header value %r is not a string in %r' % (v, (k, v))
AssertionError: Header value ['Content-Type'] is not a string in ('Access-Control-Allow-Headers', ['Content-Type'])

and:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/waitress/channel.py", line 337, in service
    task.service()
  File "/usr/local/lib/python2.7/dist-packages/waitress/task.py", line 173, in service
    self.execute()
  File "/usr/local/lib/python2.7/dist-packages/waitress/task.py", line 392, in execute
    app_iter = self.channel.server.application(env, start_response)
  File "/usr/local/lib/python2.7/dist-packages/wsgicors.py", line 89, in __call__
    start_response(status, resp)
  File "/usr/local/lib/python2.7/dist-packages/waitress/task.py", line 376, in start_response
    'Header value %r is not a string in %r' % (v, (k, v))
AssertionError: Header value ['GET', 'PUT', 'DELETE', 'POST'] is not a string in ('Access-Control-Allow-Methods', ['GET', 'PUT', 'DELETE', 'POST'])
prioritynormal
typebug
done in0.2.1
load left0.000
closed by#fd7d2033cd80 [cors] Fix 'headers' and 'methods' parameters
patch[cors] Fix 'headers' and 'methods' parameters [applied]