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
Getting a CORS error: When running the oslc-browser web app in a different container than the IBM jazz-apps, there will be a CORS error on GET of a IBM ELM resource.
It is possible to configure WebSphere Liberty or Tomcat to enable CORS. Configuring Cross Origin Resource Sharing on a Liberty server should be used for production
Work around: run oslc-browser using https and disable CORS checking in Chrome:
open -n -a Google\ Chrome --args --disable-web-security --user-data-dir
HTTPS=true npm start
Open any ELM resource in order to login and store the authentication tokens in the browser.
Need to configure the App.js to:
support https, SSL, and prompt to accept the self assigned certificate (like the browser does.
handle CORS challenge
Add support for OpenIDConnect to that can be added as a friend to DNG.
Or maybe try adding as a whitelist URL in DNG
https://example.com:9443/rm/rootservices: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
var myRequest = new Request('flowers.jpg');
var myMode = myRequest.mode; // returns "cors" by default
myRequest.mode = 'no-cors'; // might work ok, but probably not for PUT or POST.
Might be able to use an express middleware component to do this.
The text was updated successfully, but these errors were encountered:
Getting a CORS error: When running the oslc-browser web app in a different container than the IBM jazz-apps, there will be a CORS error on GET of a IBM ELM resource.
It is possible to configure WebSphere Liberty or Tomcat to enable CORS. Configuring Cross Origin Resource Sharing on a Liberty server should be used for production
Work around: run oslc-browser using https and disable CORS checking in Chrome:
open -n -a Google\ Chrome --args --disable-web-security --user-data-dir
HTTPS=true npm start
Open any ELM resource in order to login and store the authentication tokens in the browser.
Need to configure the App.js to:
https://example.com:9443/rm/rootservices: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
var myRequest = new Request('flowers.jpg');
var myMode = myRequest.mode; // returns "cors" by default
myRequest.mode = 'no-cors'; // might work ok, but probably not for PUT or POST.
Might be able to use an express middleware component to do this.
The text was updated successfully, but these errors were encountered: