gcp-storage-emulator icon indicating copy to clipboard operation
gcp-storage-emulator copied to clipboard

Feature request: Example of how to implement with CORS and SSL via docker

Open palewire opened this issue 3 years ago • 3 comments

This is the use case I'm trying to implement now and I'm struggling to get a CORS hit on an upload request from a separate dockerized node application to connect with the GCP emulator container.

palewire avatar Jun 01 '22 19:06 palewire

If I'm reading the errors I get locally correctly, I believe this may require that the server here support a preflight OPTIONS request.

palewire avatar Jun 02 '22 17:06 palewire

I just ran into this too. The server needs to respond to OPTIONS with a Access-Control-Allow-Origin.

ngbrown avatar Jun 05 '22 03:06 ngbrown

I've been traveling lately so I haven't really followed what's going on in GitHub, but this seems like a good idea. There are some minor style issues on the pull request, but otherwise it looks good to me.

oittaa avatar Aug 03 '22 18:08 oittaa