Skip to content
Snippets Groups Projects

Gonrg 10083 allow cors in buckets

Merged Abdulmohsen Alateeq (EPAM) requested to merge GONRG-10083-allow-cors-in-buckets into master
Files
2
@@ -4,41 +4,11 @@
### CORS issue
- Situation:
Sometimes you can't access to "Manage groups" or "Manage members" in Admin UI.
- Task:
Need to add CORS policy to Entitlements virtual service.
- Action:
Add that CORS policy for Entitlements virtual service:
```yaml
http:
- match:
- uri:
prefix: "/api/entitlements/v2"
corsPolicy:
allowHeaders:
- authorization
- content-type
- data-partition-id
- access-control-allow-origin
allowMethods:
- POST
- GET
- DELETE
- PATCH
- OPTIONS
allowOrigins:
- exact: "*"
maxAge: "24h"
```
You can find more information about CORS policies [here](https://istio.io/latest/docs/reference/config/networking/virtual-service/#CorsPolicy).
- Result:
Can add/modify groups and members in Entitlements service through Admin UI.
To enable access for "Manage groups" or "Manage members" in Admin UI, CORS policy needs to be added into Entitlements Service.
Guide to configure CORS in Entitlements Service ([Configuring CORS for Entitlements Service](./../cors/README.md#configuring-cors-for-entitlements-service)).
Then can add/modify groups and members in Entitlements Service through Admin UI.
## Deployment of Admin UI from pipeline
Loading