-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
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
Cross-Origin Request Blocked #51
Comments
I am facing the same issue, is there a solution to this one? |
Facing the same issue |
I didn't use the rest-api library, |
I want to implement this on front end react app. Is there a way to do it on react app? |
Please use Agile CRM JS api which takes care of CORS issue.
…On Mon, Oct 21, 2019 at 10:54 AM sahil912 ***@***.***> wrote:
I want to implement this on front end react app. Is there a way to do it
on react app?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#51?email_source=notifications&email_token=AARBBLIL3ZRCF4AJQNGOQDLQPU4H3A5CNFSM4EOZAD2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBZC3GA#issuecomment-544353688>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARBBLNWJK27U2SNCBLJPCDQPU4H3ANCNFSM4EOZAD2A>
.
|
Tried to use the JS API to create contact
Getting the following 401 error, attaching the screenshot: |
@sahil912 you need to add your host to allowed domains in agilecrm admin settings |
I'm facing the same issue while using the NodeJS library. @seleckis Where exactly can one do that? Can you share a screenshot. Did you mean Admin Settings -> Preferences -> Security (to add IPs). |
@andyfaizan Admin Settings -> Analytics -> Allowed Domains |
Still doesn't work unfortunately. I can cURL the API and it works since the cURL sends a direct POST request whereas the browser sends an OPTIONS request first and it goes through the auth and gets a 401. OPTIONS should always be allowed on the server side. |
any updates? |
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://aliworkspace.agilecrm.com/dev/api/contacts. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
The text was updated successfully, but these errors were encountered: