-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't workingshouldfixWe should do/fix this at some pointWe should do/fix this at some point
Description
Describe the bug
We support client.baseDir
option as a way for users to deploy the client app in a sub-directory. Users need to set the WASP_WEB_CLIENT_URL
env variable on the server to an URL that includes the sub-directory i.e. https://<something>/subdir
. Wasp then uses this full URL in the CORS settings. This breaks Wasp's CORS setup since subdirs are not considered different origins and this setup is wrong. Wasp should in this case set the allowed origin to just https://<something>
(without the subdir part).
To Reproduce
Steps to reproduce the behavior:
- Use the
client.baseDir
option - Deploy the client to a sub-directory e.g. Github Pages
- Try to access the server from the client
Expected behavior
CORS should work.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingshouldfixWe should do/fix this at some pointWe should do/fix this at some point