Ashley Sommer

Results 330 comments of Ashley Sommer

@ramamama I'm building a proof-of-concept plugin for baklava v1.x to implement subgraphs (I need it for my project). I'll share it once I'm finished.

Hi @tirkarthi Is this on python 3.8? This is a section of code straight from Flask-CORS, untouched from when I ported it to sanic. I might be able to make...

@ahopkins I'm not completely up to speed on all of the asgi features in Sanic. Is `asgi_client` only used when testing, ie is it a type of test_client? Or would...

Ok, I might have to think about this some more. SPF does some initialization on the app's `after_server_start` hook (or `before_server_start` depending on Sanic version and mode of operation). This...

Yep, simplest way forward would be simply skip all SPF-derived routes and middleware when in test mode. That wouldn't matter for something like CORS, but for other plugins maybe thats...

@ahopkins I've pushed a new version of Sanic-Plugins-Framework v0.9.3, it has a simple mechanism to switch SPF into serverless "running" mode if a request is received before the app is...

Hi @smlbiobot Sorry I'm having trouble following your question. Seems like you have three different points? >Per Mozilla docs there can only be one Access-Control-Allow-Origin header present. Correct. If Sanic-CORS...

Ok, this might be caused by something in the porting process between Flask-CORS and Sanic-CORS. Just surprising that the test-suite doesn't pick this up. I don't have any time to...

Hi @Theoooooo I haven't looked too deeply into this yet, but at first glance, it should work. As a first test, can you change the `@app.route` path to: ```python @app.route('/api/deploy_resource',...

Hi @Theoooooo I've done some testing on the code snippet you supplied, and I cannot reproduce your problem. The CORS response works correctly for me: ![image](https://user-images.githubusercontent.com/402468/151635262-297b6b37-3263-4503-be9e-8ac00ad81704.png) Are you still seeing...