rabbah commented on issue #2234: OPTIONS verb does not reach web actions URL: https://github.com/apache/incubator-openwhisk/issues/2234#issuecomment-305470861 For example we can add annotations: * `default-options`: true or false, and * `accept-methods`: {set of verbs} Where default-options is true automatically (preserves "feature"/behavior today) and sends the following headers: * `Access-Control-Allow-Origin`: `AllOrigins` * `Access-Control-Allow-Headers`: `?Authorization?, ?Content-Type?` * `Access-Control-Allow-Methods`: `get, delete, post, put, head, options, patch` If the `accept-methods` annotation is also specified, the methods listed in the set will superceded the default `Access-Control-Allow-Methods` header. Further, if `options` appears in the `accept-methods` annotation, then it overrides default-options (to false) and the action must implement its own response (and be prepared to invoke a receiving action twice (once for the options verb/preflight and then for the action request). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
With regards, Apache Git Services