FatFractal customer forums



Author Topic: CORS issue while fetching ff resources on website  (Read 1311 times)

nikhil.kavimandan

  • Newbie
  • *
  • Posts: 11
    • View Profile
CORS issue while fetching ff resources on website
« on: February 25, 2015, 07:28:45 AM »
I am trying to access some resources using the getObjFromUri method from a squarespace webpage I am creating, and I am running into CORS issues. Here's the browser console log:

>>XMLHttpRequest cannot load https://lstest.fatfractal.com/nktweet/ff/resources/LSStacks/yJu1pzGSum8HjJdZ7h7cf6. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://nikhil-kavimandan.squarespace.com' is therefore not allowed access.

I tried adding https://nikhil-kavimandan.squarespace.com to my app's CORS settings (SET CORS https://system.fatfractal.com https://nikhil-kavimandan.squarespace.com), but this did not resolve the issue. Any suggestions?

gkc

  • Administrator
  • *****
  • Posts: 375
    • View Profile
Re: CORS issue while fetching ff resources on website
« Reply #1 on: February 25, 2015, 01:31:01 PM »
That should work Nikhil. Let me take a look

gkc

  • Administrator
  • *****
  • Posts: 375
    • View Profile
Re: CORS issue while fetching ff resources on website
« Reply #2 on: February 25, 2015, 01:35:00 PM »
Your app does not have that CORS setting in its application.ffdl at the moment. Are you sure you deployed? If you deploy with
Code: [Select]
SET CORS https://system.fatfractal.com https://nikhil-kavimandan.squarespace.com
then it should work exactly as you would expect

nikhil.kavimandan

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: CORS issue while fetching ff resources on website
« Reply #3 on: February 25, 2015, 07:25:12 PM »
Hi Gary, that's interesting, don't know why the changes didn't get deployed, I tried it a few times. Let me see what's going on...

nikhil.kavimandan

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: CORS issue while fetching ff resources on website
« Reply #4 on: February 25, 2015, 07:32:26 PM »
Worked now! I think there was an error in my ffdl! Thanks Gary!

 

Copyright © FatFractal customer forums