Replies: 2 comments 5 replies
-
@root-io Does it work if you create a SecurityPolicy with cors? I suspect the origin of requests from web browser is not "https://example.com". Can you check with chrome -> right button -> inspect -> network tab ? |
Beta Was this translation helpful? Give feedback.
4 replies
-
@arkodg origin is the combination of scheme, hostname, and port. so maybe we can make the host part using wildcard like upstream, and leave the other parts as exact match? It's less flexible than regex, but more aligned with users' existing experience. for example:
Users can specify the following origins
API will be like
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I do not have a cors SecurityPolicy set,
access-control-allow-*
headers are returned by my backend.When using my browser, preflight and cors fail 99% of the time (the 1% remaining it works) with this log from eg:
The route does exist, I can POST to
/endpoint
using Postman and it works.Envoy Gateway latest based on a06377d
Beta Was this translation helpful? Give feedback.
All reactions