-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Research (and implement if possible) enabling CORS on the HTTP gateways #1200
Comments
Moving to blocked until I get some feedback since this is not directly doable for GCP, but could be achieved with the following workarounds:
|
It was decided (slack) to implement options 2. + 3. for both AWS and GCP to keep the handling similar for both. |
@kolenic-martin To test this you can go ahead and do a deployment with the
|
Hi @vponline, my testing strategy was basically doing what you suggested but used Postman to perform that request. It was a total of four tests:
I did not run into any problems and all of the requests were successful. |
@kolenic-martin Ok, just to confirm were you able to make a CORS request with Postman? I think we'd also need to test that you were able to block a CORS request with an empty |
You are right, this was probably not a CORS request that I attempted to
perform. I'm looking into it (reading Postman docs and Stackexchange) and
it might be easier with Curl but I need to read a little more. It should
not take too long though.
|
Thanks @kolenic-martin! Let me know if you need help, I think using a template React app would be the fastest for you to test, though 😄 As an additional request, could you also confirm that the API Key authentication is still working (by testing that you are unable to make a POST request with an incorrect API Key value as there were some changes to the configuration of it as well. |
You need to make the request from browser, not curl or postman. You don't need a react application to test this tough. All you need is a single html and JS file
and
You can get the JS implementation from postman (so just copy pasting is enough) |
Hi everyone, I just wanted to confirm that this works as intended. It fails if the API key of the deployment or endpoint IDs do not match, but that is expected behaviour. |
Slack discussion
Should be configurable.
The text was updated successfully, but these errors were encountered: