You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
During preflight request OPTIONS call is returning 405
.
You could try to add below code to any React Component to reproduce it. The URL should be require authorization and call should be made from outside launch-darkly domain( for preflight validation to work).
The document says i need to add below two for authenticated CORS:
During preflight request OPTIONS call is returning 405

.
You could try to add below code to any React Component to reproduce it. The URL should be require authorization and call should be made from outside launch-darkly domain( for preflight validation to work).
The document says i need to add below two for authenticated CORS:
componentDidMount() {
const response = fetch('https://URL', {
method: 'GET',
headers: new Headers({
Authorization: API_KEY,
'Content-type': 'application/json'
}),
credentials: 'include'
});
if (response.ok)
console.log( response.json());
}
The text was updated successfully, but these errors were encountered: