We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should implement headers: { 'Access-Control-Allow-Origin': '*' } for devServer at Port 8080 to sign up and login. Would be useful for beginners.
The text was updated successfully, but these errors were encountered:
@Gismo1337 should I add it like this ?
// auth-header.js `export default function authHeader() { let user = JSON.parse(localStorage.getItem('user'));
if (user && user.accessToken) { return { 'Access-Control-Allow-Origin': '*', Authorization: 'Bearer ' + user.accessToken }; } else { return {}; } } `
Sorry, something went wrong.
CORS should be handled server-side
No branches or pull requests
Should implement headers: { 'Access-Control-Allow-Origin': '*' } for devServer at Port 8080 to sign up and login.
Would be useful for beginners.
The text was updated successfully, but these errors were encountered: