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
Describe the bug
Cors configuration not working when JWT is enabled
To Reproduce
Add a key or set default to true in the jwt section
Expected behavior
Cors continues to work correctly
Desktop (please complete the following information):
pREST version (or commit ref): v1.2.2 (but tried a few others)
pREST endpoint: localhost
PostgreSQL version: 13.7
OS: Ubuntu 20.04
Additional context
I'm using prest to build a integration between my web app and postgres, the cors configuration was okay but stoped working when I activated the JWT configuration. The API still working in insomnia, node.js and with curl requisitions but not in the browser, my prest.toml file:
Describe the bug
Cors configuration not working when JWT is enabled
To Reproduce
Expected behavior
Cors continues to work correctly
Desktop (please complete the following information):
Additional context
I'm using prest to build a integration between my web app and postgres, the cors configuration was okay but stoped working when I activated the JWT configuration. The API still working in insomnia, node.js and with curl requisitions but not in the browser, my prest.toml file:
The preflight response with and without jwt:
The text was updated successfully, but these errors were encountered: