Skip to content
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

Login Request Fails #1

Open
EliJDonahue opened this issue Jan 23, 2018 · 1 comment
Open

Login Request Fails #1

EliJDonahue opened this issue Jan 23, 2018 · 1 comment
Assignees
Labels
Type: Bug Something is not working.

Comments

@EliJDonahue
Copy link
Member

error

Caused by CORS (cross-origin resource sharing). Source code needs to be updated to include cross origin headers in requests.

In the meantime, here are possible workarounds:

  1. Disabling CORS in the browser.
  2. Using a browser add-on to allow CORS.
  3. Use a proxy.

My chosen workaround while testing and documenting the add-in is to run Chrome via command prompt with the --disable-web-security flag:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="c:/chromedev"

Note: Disabling browser security is not recommended for production scenarios.

@EliJDonahue EliJDonahue added the Type: Bug Something is not working. label Jan 23, 2018
@EliJDonahue
Copy link
Member Author

The following steps will also avoid the CORS error:

  1. Open the IIS Manager.
  2. Select your Aras Innovator instance from the site list in the Connections pane.
  3. In the center pane, select HTTP Response Headers from the IIS section.
  4. In the Actions pane on the right, select Add…
  5. Add a header with the following values:
    • Name: Access-Control-Allow-Headers
    • Value: database, authpassword, authuser, soapaction, content-type
  6. Click Add… again and add another header with the following values:
    • Name: Access-Control-Allow-Origin
    • Value: https domain to whitelist or *

@EliJDonahue EliJDonahue self-assigned this Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant