on 2021 Nov 16 3:03 PM
Hello,
I'm using VSCode to develop UI5 apps on my computer with UI5-Toolings.
When I start the app with npm start, then a server will be started with name localhost. Due to some login restrictions, it is required that I start server with a domain name instead of localhost. So I added a domain name alias in the hosts file for localhost.
When I start the UI5 app with the index.html and the domain name in the URL then everything works fine. But if I start it with test/flpSandbox.html then I get the following error.
I assume that the reason for this is, that the app has been registered already for localhost instead of the domain name. When I try it with the localhost URL, then I don’t get this error, but I can not login due to the restrictions.
Is there a possibility to replace localhost with the domain name?
Best regards
Frank
Request clarification before answering.
Hi Frank,
your error seems to be something else:
likely caused by:
[...] with duplicate id
This is caused if you add two elements with the same id. Could be a component, plugin or control. Maybe double check that you only have unique namespaces inbetween your launchpad apps?
Somewhat related:
Putting entries in the host file of your computer isn't needed most of the time. Webapps should run on any hostname resolving their dependey mostly relative to the host.
For develppment have a look at:
https://www.npmjs.com/package/ui5-middleware-simpleproxy
With the proxy you can map e.g. 'localhost/resources' to 'https://sapui5.hana.ondemand.com/resources'
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
ignoreCertError: true
backend:
- path: /sap
url: "https://servername:44310"
client: "010&saml2=disabled"
...
Best regards
Frank
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.