Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy tizen and webos on browser with charles #1111

Open
williamtdepaula opened this issue Sep 20, 2023 · 2 comments
Open

Proxy tizen and webos on browser with charles #1111

williamtdepaula opened this issue Sep 20, 2023 · 2 comments
Labels
question I have a question!

Comments

@williamtdepaula
Copy link

williamtdepaula commented Sep 20, 2023

Hello everyone.

I am trying to proxy my app on browser. I am using the script NODE_ENV=preprod rnv run -p tizen --hosted --hostIp 127.0.0.1 --port 3000 to run app on browser. If I open the localhost:3000, everything is ok. But I need proxy my app to a url https https://www.clarotvmais.com.br/ to do authenticated requests with cookies. I am using charles for this. I configured the map remote, but when I open it in the browser, I receive "Invalid Host Header".

Charles - Map remote
Captura de Tela 2023-09-20 às 12 45 29

Browser
Captura de Tela 2023-09-20 às 12 45 02

Charles when try to load page
Captura de Tela 2023-09-20 às 12 44 05

Can you help me please?

@williamtdepaula williamtdepaula added the question I have a question! label Sep 20, 2023
@pauliusguzas
Copy link
Collaborator

@williamtdepaula thanks for reporting this, could you provide more info like, rnv version, node version?

@williamtdepaula
Copy link
Author

williamtdepaula commented Sep 25, 2023

Hello, we're using node 16.14.0 and rnv 0.34.0.

Apparently, we resolved this problem, but we yet need do a proxy on devServer like this: https://v4.webpack.js.org/configuration/dev-server/#devserverproxy

But we had no effects.
Captura de Tela 2023-09-25 às 12 14 22

But we would like to use a middleware, where we can use a middleware in express like this: https://www.npmjs.com/package/http-proxy-middleware. We didn't find

OBS. (I don't know if when we build app for tizen/webos, it uses express)

@pauliusguzas pauliusguzas added this to the 1.3 milestone Sep 9, 2024
@Marius456 Marius456 modified the milestones: 1.3, 1.4 Sep 20, 2024
@Marius456 Marius456 modified the milestones: 1.4, 1.5 Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question I have a question!
Projects
None yet
Development

No branches or pull requests

3 participants