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

CORS failures #7

Open
peppelinux opened this issue Jan 7, 2025 · 4 comments
Open

CORS failures #7

peppelinux opened this issue Jan 7, 2025 · 4 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@peppelinux
Copy link
Member

immagine

@peppelinux peppelinux added bug Something isn't working documentation Improvements or additions to documentation labels Jan 7, 2025
@PascalDR
Copy link
Collaborator

PascalDR commented Jan 7, 2025

After some digging i haven't found a solution that completely backend/plugin free solution.

So we have two ways to address this issue:

  • With a Cors Proxy: there are no specific reason to develop a backend for the app for this reason a cors proxy can be used to use the app.
    In this experimental branch i use corsproxy.io to handle the requests.

  • With a Plug-in: Hoppscotch is a web based Postman like that uses an ad-hoc plug-in to permit the requests on a remote api.

The code can also be adapted to run as standalone Electron desktop app with a minimum of rework sending the requests through IPC as a companion to the browser app.

@peppelinux

@peppelinux
Copy link
Member Author

this confirms that the page containing the js cannot be deployed on a traditional CDN

isn't that true @PascalDR ?

@PascalDR
Copy link
Collaborator

PascalDR commented Jan 8, 2025

Unfortunately yes, we must use one of the two solution or a minimal backend.

@peppelinux
Copy link
Member Author

peppelinux commented Jan 8, 2025

Please provide the documentation to enable a full statico export of the web Page and the setup of a minimal https server, such as nginx, to deploy the product without the cors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants