I can’t seem to find the proper syntax to access a specific port on a website (https not on 443)
(using fetch) at runtime I got the error below despite having the address and port in the manifest.
Wrong syntax ? or bug ? ( the same call work via postman, so not an issue with the server at 127.0.0.1, nor the SSL handshake).
… Or did I disregard something ? (but what? )
”Permission denied to the url https://127.0.0.1:4443/foobar. Manifest entry not found.”
Manifest :
"requiredPermissions": {
"network": {
"domains": [
“https://localhost",
“https://127.0.0.1:4443”
],
If I do not pass the port in the manifest (ie: only “https://127.0.0.1” ), but the code try to access 127.0.0.1:4443, I have a different error.
TypeError: Network request failed at o.onerror (uxp://uxp-internal/netjs_scripts.js:2:616789) …
BTW on the server side, this is a self-signed certificate (with checkHost and verifyMode turned off).
Could it be the root cause with a misleading message ? (maybe UXP require to have a non-self signed cert ?)
( and yes I am aware this is a security hole, but good enough for testing locally )