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
I attempted to set up the B2B Edition on my local environment (http://localhost:3000/), but I encountered a CORS error
Error details: Uncaught (in promise) Error: {'allowed_cors_origins': [ErrorDetail(string='Invalid data', code='invalid')]} at b3Fetch.ts:104:15
Uncaught (in promise) Error: {'allowed_cors_origins': [ErrorDetail(string='Invalid data', code='invalid')]} at b3Fetch.ts:104:15
Please help me set up B2B Edition locally without the CORS error.
Thank you!
The text was updated successfully, but these errors were encountered:
@jet-gunay I faced same issue and resolve by Go to apps/storefront/src/utils/loginInfo.ts and edit below thing
const { origin } = window.location; change to const origin = 'your-store-url'; // bc stront front url
Sorry, something went wrong.
@jet-gunay You can only use registered sites in https://api.bigcommerce.com/stores/[store_hash]/v3/sites, otherwise you will get that error
https://api.bigcommerce.com/stores/[store_hash]/v3/sites
Could you also provide more information? Like the payload, tools that you're using or a video when the error happen would be helpful
bc-marco
No branches or pull requests
I attempted to set up the B2B Edition on my local environment (http://localhost:3000/), but I encountered a CORS error
Error details:
Uncaught (in promise) Error: {'allowed_cors_origins': [ErrorDetail(string='Invalid data', code='invalid')]} at b3Fetch.ts:104:15
Please help me set up B2B Edition locally without the CORS error.
Thank you!
The text was updated successfully, but these errors were encountered: