Bug 1767951 - [Docs] Improve CORS configuration validation instructions to be more specific
Summary: [Docs] Improve CORS configuration validation instructions to be more specific
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Migration Tooling
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.2.z
Assignee: Avital Pinnick
QA Contact: Xin jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-01 17:34 UTC by Erik Nelson
Modified: 2019-11-06 12:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-06 12:06:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Erik Nelson 2019-11-01 17:34:12 UTC
The current docs read:

```

Verify the configuration:

$ curl -v -k -X OPTIONS \
"<cluster_url>/apis/migration.openshift.io/v1alpha1/namespaces/openshift-migration/migclusters" \ 
-H "Access-Control-Request-Method: GET" \
-H "Access-Control-Request-Headers: authorization" \
-H "Origin: https://<CAM_tool_url>" 

	Update the source cluster URL.
	Update the CAM tool URL.

The output appears similar to the following:

< HTTP/2 204
< access-control-allow-credentials: true
< access-control-allow-headers: Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, X-Requested-With, If-Modified-Since
< access-control-allow-methods: POST, GET, OPTIONS, PUT, DELETE, PATCH
< access-control-allow-origin: https://migration-openshift-migration.apps.cluster
< access-control-expose-headers: Date
< cache-control: no-store
```

To be more specific "CAM tool URL" could be updated to read the "CAM UI URL". Would also be good to add an example to this note. So it could read:

```
Update with the CAM UI URL. This should be the URL used to access the CAM UI. For example:

-H "Origin: https://migration-openshift-migration.apps.cluster"
```

Comment 5 Xin jiang 2019-11-04 02:25:14 UTC
Verified.


Note You need to log in before you can comment on or make changes to this bug.