CORS problem after upgrade from 1.6.10 to 1.7.8


#1

I recently successfully upgraded to version 1.7.8 only to have an running application break. My CORS Access was set up for ‘*’ on all 6 verbs and this successfully migrated to version 1.7.8. However the application no longer works. From developer tools on Chrome I see such errors as:

“XMLHttpRequest cannot load http://ultra.local:8090/rest/api_docs. The ‘Access-Control-Allow-Origin’ header has a value ‘http://localhost:8090’ that is not equal to the supplied origin. Origin ‘http://localhost’ is therefore not allowed access.”

"Uncaught Can’t read from server. It may not have the appropriate access-control-origin settings. "

This was never the case with 1.6.10.

I deleted the ‘*’ entry and manually created afresh just to troubleshoot but problem remains.

Kindly advise resolution approach.

Thanks


#2

I let engineering know. Hope to have an answer soon, might be Monday. Sorry about that, we’ll get it sorted out.


#3

Did you flush and rebuild platform and swagger cache? Do this first within your newly updated dsp.

I’d like for you to try this: add /web/logout to your DSP_URL. Also restart Apache and mysql as an admin, i. e. Right click on dsp manager, “run as admin.” proceed to restart both services. I believe your running on a Windows box, could be mistaken…

Please report your results, in the meantime, I’ll do more research on the cause of this issue.

Thanks,
Mark


#4

Verified.

We will get a fix into github asap.


#5

Mark,

" try this: add /web/logout to your DSP_URL. Also restart Apache and mysql as an admin, i. e. Right click on dsp manager, “run as admin.” proceed to restart both services"
==> Tried but no difference

“flush and rebuild platform and swagger cache” ==> Please post the detailed steps for doing this

Yes this is a Windows Bitnami installation.


#6

These are two buttons on top of your admin console… Try to use 127.0.0.1 in the meantime… Could be a potential work around.

Either way, Jason knows best :slight_smile: , this is something that has been escalated for our engineers to look into.

Will have an update for you beginning of the week.

Enjoy this nice Sunday.

Best,
Mark


#7

Those buttons made no difference.

Look forward to Engineering’s fix then.


#8

Hi,

Please, take a look at the new release of DSP 1.8 which has implemented a fix for this issue.

Thanks!

  • Mark

#9

Hopefully clicking update in config tab works without issues.