mirror of
https://github.com/labstack/echo.git
synced 2024-12-22 20:06:21 +02:00
57c7dccfbf
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
29 lines
472 B
Markdown
29 lines
472 B
Markdown
+++
|
|
title = "JSONP Example"
|
|
description = "JSONP example for Echo"
|
|
[menu.side]
|
|
name = "JSONP"
|
|
parent = "recipes"
|
|
weight = 6
|
|
+++
|
|
|
|
JSONP is a method that allows cross-domain server calls. You can read more about it at the JSON versus JSONP Tutorial.
|
|
|
|
## Server
|
|
|
|
`server.go`
|
|
|
|
{{< embed "jsonp/server.go" >}}
|
|
|
|
## Client
|
|
|
|
`index.html`
|
|
|
|
{{< embed "jsonp/public/index.html" >}}
|
|
|
|
## Maintainers
|
|
|
|
- [willf](https://github.com/willf)
|
|
|
|
## [Source Code]({{< source "jsonp" >}})
|