Jump to content

Can I enable CORS when squarespace API is on a subdomain of my main website?

Recommended Posts

I am developing a website and need to get content from my squarespace page to display

When I try to do HTTP requests though, I get the following error:

CORS policy: No 'Access -Control -Allow-Origin' Header Is present on the requested resource 

Is there anything I can do to solve this problem?

Link to comment
  • Linhttd changed the title to Can I enable CORS when squarespace API is on a subdomain of my main website?
  • Replies 4
  • Views 1.6k
  • Created
  • Last Reply
2 minutes ago, Linhttd said:

I am developing a website and need to get content from my squarespace page to display

When I try to do HTTP requests though, I get the following error:


CORS policy: No 'Access -Control -Allow-Origin' Header Is present on the requested resource 

Is there anything I can do to solve this problem?

Upvoted, I have the same issue for this. CORS displays like a bug.

I need a hand from pro

Link to comment

You'll need to provide us with more information, including the URLs of the two pages on the two sites and what you want to achieve.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Link to comment

@paul2009

We are still in development but we have 1 website with the domain name abc.jp (I apologize for not being able to provide an official website for the privacy of our clients)
and we want to set the domain of squarespace page as notification.abc.jp
We want to call api of notification.abc.jp page from abc.jp to get some information like title, tag, category

Link to comment

Generic URLs aren't any help. We need the URLs of the actual sites. This is so we can see the settings and diagnose the issue and provide an accurate answer. 

If you are being paid by a client then I recommend you hire a professional to help you so that you can discuss the issue privately.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.