https://github.com/cmdcolin/express_static_file_auth
https://github.com/cmdcolin/express_static_file_auth
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cmdcolin/express_static_file_auth
- Owner: cmdcolin
- Created: 2020-08-10T00:20:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-08T14:12:15.000Z (about 2 years ago)
- Last Synced: 2025-01-15T08:45:02.531Z (over 1 year ago)
- Language: TypeScript
- Size: 555 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express static file auth
A basic example of an express.js server that actually enables CORS
authorization and accepts credentials from anyone. This is not necessarily what
is recommended by CORS but it helps in simple debugging scenarios where you
want to request access to this resource on port 4000 from your CRA on port 3000
See this thread for more details
https://stackoverflow.com/questions/19743396/cors-cannot-use-wildcard-in-access-control-allow-origin-when-credentials-flag-i
## Usage
```
git clone https://github.com/cmdcolin/express_static_file_auth
cd express_static_file_auth
yarn
yarn start
```
Starts on port 4000 or