MitocGroup / MitocGroup/adtechmedia-wordpress-plugin

Error in console when installing atm widget for stage env

Open
#247 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:

  • Install and Activate atm widget on your local machine
  • Edit atm config file to point "stage" env
  • Access atm widget configuration page

BUG:

  • The following error in console is displayed
    Failed to load https://manage-stage.adtechmedia.io/deep-account/terms/dialog.html: The 'Access-Control-Allow-Origin' header has a value 'http://wordpress.localhost' that is not equal to the supplied origin. Origin 'http://localhost:8080' is therefore not allowed access.

Please refer to attachment for more details:

screen shot 2017-09-20 at 14 13 27

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue from the atm widget configuration page after pointing the local configuration at the stage environment. Inspect the request to manage-stage.adtechmedia.io/deep-account/terms/dialog.html and determine which project-side or environment setting controls the origin; done means the page loads without the reported CORS error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.